1234567891011121314151617181920212223242526 |
- #!/bin/execlineb -PS0
- backtick -n -D "${1}" -E sv {
- pipeline { echo "${1}" }
- sed "s/-log$//"
- }
- unexport DIRECTIVES
- unexport S6_LOG_DIR
- envfile -I /etc/s6/config/global-log.conf
- envfile -I "/etc/s6/config/${sv}.conf"
- multisubstitute {
- importas -sCuD "n3 s2000000 T" -S DIRECTIVES
- importas -uD "/run/log" -S S6_LOG_DIR
- }
- define log "${S6_LOG_DIR}/${sv}"
- foreground { install -m750 -d -o s6log -g s6log "${log}" }
- s6-setuidgid s6log
- exec -c
- s6-log -d3 -b -- ${DIRECTIVES} "${log}"
|