From 7ad86fb9cdc68575a039b71158bc80f50c838c2f Mon Sep 17 00:00:00 2001
From: Petr Baudis <pasky@ucw.cz>
Date: Fri, 16 Mar 2012 05:16:02 +0100
Subject: [PATCH] debian/compctl.init: Fix stopping daemon

Currently, the init script would kill itself
---
 debian/compctl.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/compctl.init b/debian/compctl.init
index 7eff381..41e27fe 100644
--- a/debian/compctl.init
+++ b/debian/compctl.init
@@ -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
-- 
GitLab