Browse Source

Fix stop regression


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2557 fd59a12c-fef9-0310-b244-a6a79926bd2f
Fabio M. Di Nitto 16 years ago
parent
commit
60f6e2f299
1 changed files with 3 additions and 1 deletions
  1. 3 1
      init/generic.in

+ 3 - 1
init/generic.in

@@ -93,8 +93,10 @@ start()
 
 stop()
 {
+	! status $prog > /dev/null 2>&1 && return
+
 	echo -n "Signaling $desc ($prog) to terminate: "
-	killall -TERM $prog > /dev/null 2>&1
+	kill -TERM $(pidof $prog) > /dev/null 2>&1
 	success
 	echo