소스 검색

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>
Jan Friesse 14 년 전
부모
커밋
8e58459176
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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