Permalink
Browse files

Probably fixed tollgate-backend stopping now (Issue #29)

  • Loading branch information...
micolous committed May 11, 2012
1 parent 7f6d943 commit 7e35550a461f19431c09db6bd6c72d8a23beb381
Showing with 2 additions and 2 deletions.
  1. +2 −2 platform/debian/init.d/tollgate-backend
@@ -66,7 +66,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
@@ -75,7 +75,7 @@ do_stop()
# that waits for the process to drop all resources that could be
# needed by services started subsequently. A last resort is to
# sleep for some time.
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile $PIDFILE --exec $DAEMON
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile $PIDFILE
[ "$?" = 2 ] && return 2
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE

0 comments on commit 7e35550

Please sign in to comment.