diff options
Diffstat (limited to 'contrib/runit/s5-nginx-lua/log/run')
-rwxr-xr-x | contrib/runit/s5-nginx-lua/log/run | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/runit/s5-nginx-lua/log/run b/contrib/runit/s5-nginx-lua/log/run new file mode 100755 index 0000000..2142c2e --- /dev/null +++ b/contrib/runit/s5-nginx-lua/log/run @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +LOG_D="/var/log/sfive/nginx-lua" +if [ ! -d "$LOG_D" ]; then + mkdir -p -m0750 "$LOG_D" +fi +chown sfive:sfive "$LOG_D" +exec chpst -u sfive:sfive svlogd -tt "$LOG_D" |