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

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 -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

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@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
participants (1)
-
Daniel Veillard