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)
|
stop)
|
||||||
echo -n "Stopping daemon: "$NAME
|
echo -n "Stopping daemon: "$NAME
|
||||||
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
|
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
|
||||||
|
rm $PIDFILE
|
||||||
echo "."
|
echo "."
|
||||||
;;
|
;;
|
||||||
tail)
|
tail)
|
||||||
@ -31,6 +32,7 @@ case "$1" in
|
|||||||
restart)
|
restart)
|
||||||
echo -n "Restarting daemon: "$NAME
|
echo -n "Restarting daemon: "$NAME
|
||||||
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
|
start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $PIDFILE
|
||||||
|
rm $PIDFILE
|
||||||
start-stop-daemon \
|
start-stop-daemon \
|
||||||
--background \
|
--background \
|
||||||
--chdir /app \
|
--chdir /app \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user