init.d.in
changeset 41 bd4aaf436891
parent 30 c22ca6b1ad5c
--- a/init.d.in	Wed Jul 30 10:34:23 2014 +0200
+++ b/init.d.in	Wed Jul 30 10:42:46 2014 +0200
@@ -49,7 +49,7 @@
 	#   0 if daemon has been started
 	#   0 if daemon was already running
 	#   2 if daemon could not be started
-	PID=$(pidof $NAME) && return 0
+	PID=$(pidof "$NAME $WATCHPOINTS") && return 0
 	
 	if [ ! $PID ]; then
 		$DAEMON "$WATCHPOINTS" || return 2
@@ -67,7 +67,7 @@
 	#   0 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-	PID=$(pidof $NAME) || return 0
+	PID=$(pidof "$NAME $WATCHPOINTS") || return 0
 
 	$DAEMON --kill || return 2
 	return 0