mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-03 14:28:16 +00:00
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>
This commit is contained in:
parent
33e5ce8d56
commit
8e58459176
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user