HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
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