diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2014-08-17 02:15:19 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2014-08-17 02:17:03 -0400 |
commit | 504160ee5763f44e6cf8e7d9c056ff392846783f (patch) | |
tree | 2f7ed43092000703945307c1b243909772f524a4 /other | |
parent | 69e619bfa069cf9f535b52c25864b15370384124 (diff) |
Fixed daemon taking long time to stop
Diffstat (limited to 'other')
-rw-r--r-- | other/bootstrap_daemon/tox-bootstrapd | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/other/bootstrap_daemon/tox-bootstrapd b/other/bootstrap_daemon/tox-bootstrapd index f21ae6a6..a6c137bd 100644 --- a/other/bootstrap_daemon/tox-bootstrapd +++ b/other/bootstrap_daemon/tox-bootstrapd | |||
@@ -61,12 +61,9 @@ do_stop() | |||
61 | # 1 if daemon was already stopped | 61 | # 1 if daemon was already stopped |
62 | # 2 if daemon could not be stopped | 62 | # 2 if daemon could not be stopped |
63 | # other if a failure occurred | 63 | # other if a failure occurred |
64 | start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME --chuid $USER | 64 | start-stop-daemon --stop --quiet --retry 5 --pidfile $PIDFILE --name $NAME --chuid $USER |
65 | RETVAL="$?" | 65 | RETVAL="$?" |
66 | [ "$RETVAL" = 2 ] && return 2 | 66 | [ "$RETVAL" = 2 ] && return 2 |
67 | |||
68 | start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON --chuid $USER | ||
69 | [ "$?" = 2 ] && return 2 | ||
70 | # Many daemons don't delete their pidfiles when they exit. | 67 | # Many daemons don't delete their pidfiles when they exit. |
71 | rm -f $PIDFILE | 68 | rm -f $PIDFILE |
72 | return "$RETVAL" | 69 | return "$RETVAL" |