Browse Source

Merge trunk revision 2557:
r2557 | fabbione | 2009-11-30 14:28:30 -0700 (Mon, 30 Nov 2009) | 3 lines

Fix stop regression



git-svn-id: http://svn.fedorahosted.org/svn/corosync/branches/flatiron@2612 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 16 years ago
parent
commit
b2838454ef
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