File: //etc.defaults/init/pkg-WebStation-fcgiwrap.conf
cgroup cpuacct "pkgctl-WebStation"
cgroup memory "pkgctl-WebStation"
author "Web Infrastructure Team"
description "FcgiWrap"
oom score -999
respawn
respawn limit 5 10
env TARGET=/var/packages/WebStation/target
env SOCKET=/run/fcgiwrap.sock
pre-start script
[ ! -d /run ] && /bin/mkdir -p /run || true
rm -f $SOCKET || true
/usr/bin/mknod /run/suphp_log p || true
/usr/bin/chmod 600 /run/suphp_log
end script
script
num_cores="$(/usr/bin/nproc --all)" || true
exec $TARGET/usr/bin/spawn-fcgi -u http -M 0660 -s $SOCKET -n -- $TARGET/usr/bin/multiwatch -f $num_cores -- $TARGET/usr/bin/fcgiwrap
end script