fix: got open rc working
This commit is contained in:
parent
60b179dbac
commit
0df82699ae
|
@ -1,16 +0,0 @@
|
||||||
#!/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
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user