Add the --make-pidfile argument as Spawning will not dump it's own PID
http://github.com/rtyler/Spawning/issues#issue/7 Change-Id: I03af9e1bed44cf5b680c4239ec1281026cd1abf1
This commit is contained in:
parent
3be33e225f
commit
d980e56a56
|
@ -70,7 +70,7 @@ start() {
|
|||
[ -n "$CHUID" ] && DAEMON_ARGS="$DAEMON_ARGS --chuid=$CHUID"
|
||||
[ -n "$EXTRA_ARGS" ] && DAEMON_ARGS="$DAEMON_ARGS $EXTRA_ARGS"
|
||||
DAEMON_ARGS="$DAEMON_ARGS $APP"
|
||||
/sbin/start-stop-daemon --start --background --pidfile=$PIDFILE --chdir $SITE_DIR --exec $SPAWNING_BIN -- $DAEMON_ARGS || return 2
|
||||
/sbin/start-stop-daemon --start --background --make-pidfile --pidfile=$PIDFILE --chdir $SITE_DIR --exec $SPAWNING_BIN -- $DAEMON_ARGS || return 2
|
||||
echo $NAME
|
||||
return 0
|
||||
}
|
||||
|
@ -112,4 +112,4 @@ case "$1" in
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit $?
|
||||
exit $?
|
||||
|
|
Loading…
Reference in New Issue