[Openais] [PATCH] corosync/trunk fix init script regression from recent commit

Steven Dake sdake at redhat.com
Mon Nov 30 13:06:53 PST 2009


good for merge

On Mon, 2009-11-30 at 21:05 +0100, Fabio M. Di Nitto wrote:
> totally my fault, I didn´t notice this issue before. Using killall is
> bad as it would kill also the init script itself. This patch address the
> problem.
> 
> Fabio
> plain text document attachment (corosync_init_fix_stop.diff)
> Index: init/generic.in
> ===================================================================
> --- init/generic.in	(revision 2554)
> +++ init/generic.in	(working copy)
> @@ -93,8 +93,10 @@
>  
>  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
>  
> _______________________________________________
> Openais mailing list
> Openais at lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/openais



More information about the Openais mailing list