[libvirt] [PATCH] Small fix for LSB compilance of init script

Daniel Veillard veillard at redhat.com
Thu Mar 18 12:34:21 UTC 2010


On Wed, Mar 03, 2010 at 11:58:51AM +0100, Daniel Veillard wrote:
> A trivial small fix:
> 
> Fix LSB compliance of init script
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=538701
> 
> * daemon/libvirtd.init.in: daemon/libvirtd.init.in were not mentionned
>   in the usage message and if a missing or wrong argument is given it
>   should return 2, not 1
> 
> diff --git a/daemon/libvirtd.init.in b/daemon/libvirtd.init.in
> index b808ab3..4c8821b 100644
> --- a/daemon/libvirtd.init.in
> +++ b/daemon/libvirtd.init.in
> @@ -106,8 +106,8 @@ case "$1" in
>          [ -f @localstatedir@/lock/subsys/$SERVICE ] && restart || :
>          ;;
>      *)
> -        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
> -	exit 1
> +        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload|try-restart}"
> +	exit 2
>          ;;
>  esac
>  exit $RETVAL

  Okay, that's trivial, so I pushed it,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list