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

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

 



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@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]