Re: [PATCH 3/3] Wait for corosync-notifyd exit in init script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Steven Dake <sdake@xxxxxxxxxx>

On 02/01/2012 10:00 AM, Jan Friesse wrote:
> 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@xxxxxxxxxx>
> ---
>  init/notifyd.in |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/init/notifyd.in b/init/notifyd.in
> index 86c6393..84de9ae 100755
> --- a/init/notifyd.in
> +++ b/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

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux