Browse Source

Wait for corosync-notifyd exit in init script

Without wait for real exit of corosync-notifyd it can happen, that new
corosync-notifyd is killed. To prevent such condition, stop now wait for
process to die, before exit of stop function.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
(cherry picked from commit 8e584591760704a0fe0398e39a10646f2ddaa2ba)
Jan Friesse 14 years ago
parent
commit
fbe6de4d16
1 changed files with 6 additions and 0 deletions
  1. 6 0
      init/notifyd.in

+ 6 - 0
init/notifyd.in

@@ -106,6 +106,12 @@ stop()
 	success
 	echo
 
+	echo -n "Waiting for $prog services to unload:"
+	while status $prog > /dev/null 2>&1; do
+		sleep 1
+		echo -n "."
+	done
+
 	rm -f $LOCK_FILE
 	success
 	echo