initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

44
fcgiwrap/fcgiwrap.initd Normal file
View File

@@ -0,0 +1,44 @@
#!/sbin/openrc-run
name="fcgiwrap"
description="fcgiwrap cgi daemon"
command="/usr/bin/fcgiwrap"
command_background="yes"
user="http"
group="http"
: ${socket:=unix:/run/fcgiwrap/fcgiwrap.sock}
depend() {
need net localmount
after firewall
}
start_pre() {
command_args="-c ${nproc:-$(nproc)} -s $socket"
case "$socket" in
unix:/*)
local socket_path=${socket#unix:}
checkpath --directory --mode 2775 --owner ${user}:${group} \
${socket_path%/*}
;;
esac
}
start() {
ebegin "Starting ${name}"
start-stop-daemon --exec ${command} \
--background \
-k 0002 \
-u ${user} -g ${group} \
--start -- ${command_args}
eend $?
}
stop_post() {
case "$socket" in
unix:/*)
rm -f "${socket#unix:}"
;;
esac
}