mirror of
https://github.com/fluencelabs/node-distro
synced 2024-12-04 15:20:17 +00:00
Handle SIGTERM (#3)
This commit is contained in:
parent
92a856227a
commit
0880cd3128
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -3,7 +3,8 @@
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
},
|
||||
"editor.formatOnSave": false
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnPaste": false
|
||||
},
|
||||
"shellformat.effectLanguages": [
|
||||
"shellscript",
|
||||
|
@ -28,4 +28,3 @@ mkdir -p \
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc /config
|
||||
chmod -R 644 /etc/logrotate.d
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
#!/bin/execlineb -P
|
||||
|
||||
# s6-setuidgid abc - run as a user abc (unprivileged)
|
||||
|
||||
@ -7,5 +7,4 @@
|
||||
# S30000000 - keep only 30 MB of rotated (and compressed) logs
|
||||
# T - prepend timestamp to each line
|
||||
# !"gzip -nq9" - compresses logs on rotation
|
||||
exec \
|
||||
s6-setuidgid abc s6-log n30 s10000000 S30000000 T !"gzip -nq9" /config/log/ipfs
|
||||
s6-setuidgid abc s6-log n30 s10000000 S30000000 T !"gzip -nq9" /config/log/ipfs
|
||||
|
@ -1,7 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
#!/bin/execlineb -P
|
||||
|
||||
exec \
|
||||
# seems like IPFS logs most logs to stderr, so
|
||||
# map stderr to stdout so s6-log can catch it
|
||||
fdmove -c 2 1 \
|
||||
s6-setuidgid abc ipfs daemon
|
||||
# seems like IPFS logs most logs to stderr, so
|
||||
# map stderr to stdout so s6-log can catch it
|
||||
fdmove -c 2 1
|
||||
s6-setuidgid abc ipfs daemon
|
||||
|
Loading…
Reference in New Issue
Block a user