Remove PIDFILE after stop
This commit is contained in:
parent
6e8d898cb0
commit
a2f8b5c08e
2
listener
2
listener
@ -23,6 +23,7 @@ case "$1" in
|
||||
stop)
|
||||
echo -n "Stopping daemon: "$NAME
|
||||
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
|
||||
rm $PIDFILE
|
||||
echo "."
|
||||
;;
|
||||
tail)
|
||||
@ -31,6 +32,7 @@ case "$1" in
|
||||
restart)
|
||||
echo -n "Restarting daemon: "$NAME
|
||||
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
|
||||
rm $PIDFILE
|
||||
start-stop-daemon \
|
||||
--background \
|
||||
--chdir /app \
|
||||
|
Loading…
x
Reference in New Issue
Block a user