[merged] the start/stop fixupds
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Wed, 01 Apr 2015 11:11:17 +0200
changeset 46 92cbdc24b0fd
parent 45 e66e9db8e83a (current diff)
parent 41 bd4aaf436891 (diff)
child 47 9dec3ff4489b
[merged] the start/stop fixupds
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore	Wed Apr 01 11:11:17 2015 +0200
@@ -0,0 +1,5 @@
+syntax:glob
+default
+init.d
+tele-watch
+tele-watch.8.gz
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgsigs	Wed Apr 01 11:11:17 2015 +0200
@@ -0,0 +1,1 @@
+4dc0db29f353b0c13683aad8e92cc4c5750944af 0 iEYEABECAAYFAkz9b4kACgkQ7k6smEjQNZvSUgCg1ws1cEq8qCXyPlJDmXccfszRW34Anix7aNJxu2gbAxEFdqJA2mEgG399
--- a/init.d.in	Wed Apr 01 11:05:26 2015 +0200
+++ b/init.d.in	Wed Apr 01 11:11:17 2015 +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