summaryrefslogtreecommitdiff
path: root/contrib/runit/s5-nginx-lua/log/run
blob: 2142c2e9c16b7d6db0ee5d116d7ae24cf12f749b (plain) (blame)
1
2
3
4
5
6
7
8
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"