Skip to content
Snippets Groups Projects
Commit 7ad86fb9 authored by Petr Baudis's avatar Petr Baudis
Browse files

debian/compctl.init: Fix stopping daemon

Currently, the init script would kill itself
parent 8c8c5729
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,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 --name $NAME
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --exec $DAEMON
RETVAL="$?"
[ "$RETVAL" = 2 ] && return 2
# Wait for children to finish too if this is a daemon that forks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment