hack: add spawn-cgi script, necessary for systemd on ubuntu

I know, I know, I'm moving to Alpine Linux.
This commit is contained in:
NunoSempere 2022-03-10 21:19:30 +00:00
parent e6e1bb3b59
commit 0ad44f3a41
2 changed files with 16 additions and 0 deletions

0
bin/contrib/discount.rc Normal file → Executable file
View File

16
bin/contrib/spawn-fcgi.sh Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/bash
PID_file="/home/uriel/workspace/werc-1.5.0/bin/pid"
start() {
PID_spawn="$(/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -f /usr/sbin/fcgiwrap)"
echo "$PID_spawn" > "$PID_file"
}
stop() {
kill -15 "$(cat "$PID_FILE")"
}
case $1 in
start|stop) "$1" ;;
esac