s6-service-definitions/sv/gpm-log/run

9 lines
363 B
Plaintext

#!/bin/execlineb -P
importas -sCuD "n3 s2000000 T" DIRECTIVES DIRECTIVES
ifelse { test -w /var/log } {
foreground { install -d -o s6log -g s6log /var/log/gpm }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /var/log/gpm
}
foreground { install -d -o s6log -g s6log /run/log/gpm }
s6-setuidgid s6log exec -c s6-log -d3 -b -- ${DIRECTIVES} /run/log/gpm