]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix LSB compliance of init script
authorDaniel Veillard <veillard@redhat.com>
Wed, 3 Mar 2010 10:55:06 +0000 (11:55 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 18 Mar 2010 12:30:16 +0000 (13:30 +0100)
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

daemon/libvirtd.init.in

index b808ab352e151eacc790c0b2f9115a74a055326d..4c8821b2cedaf2de3f063f531b9c961f5b79fc35 100644 (file)
@@ -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