1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

reduce stop timeout to 3 sec instead of 30

This commit is contained in:
Julien Malik 2014-04-07 12:05:19 +02:00
parent 117dc67b2a
commit e431acfecd

View file

@ -90,7 +90,7 @@ do_stop()
# that waits for the process to drop all resources that could be # that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to # needed by services started subsequently. A last resort is to
# sleep for some time. # sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 \ start-stop-daemon --stop --quiet --oknodo --retry=0/3/KILL/5 \
--exec $DAEMON --exec $DAEMON
[ "$?" = 2 ] && return 2 [ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit. # Many daemons don't delete their pidfiles when they exit.