Handle SIGTERM (#3)

This commit is contained in:
folex 2021-06-24 20:00:55 +03:00 committed by GitHub
parent 92a856227a
commit 0880cd3128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 11 deletions

View File

@ -3,7 +3,8 @@
"editor.quickSuggestions": {
"strings": true
},
"editor.formatOnSave": false
"editor.formatOnSave": false,
"editor.formatOnPaste": false
},
"shellformat.effectLanguages": [
"shellscript",

View File

@ -28,4 +28,3 @@ mkdir -p \
# permissions
chown -R abc:abc /config
chmod -R 644 /etc/logrotate.d

View File

@ -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

View File

@ -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 \
fdmove -c 2 1
s6-setuidgid abc ipfs daemon