Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Mareš
compctl-kam
Commits
7ad86fb9
Commit
7ad86fb9
authored
Mar 16, 2012
by
Petr Baudis
Browse files
debian/compctl.init: Fix stopping daemon
Currently, the init script would kill itself
parent
8c8c5729
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian/compctl.init
View file @
7ad86fb9
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment