X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Fsuse%2Favahi-daemon.in;h=0dc5f9fb5c1e74ec862d6f07f4a6722e124f9498;hb=7a5b2f69af7d36d6cd4153142f125fa011784e03;hp=851006cf722480fba03398ea8d532f424ff74ce2;hpb=53ac2245c30daf71413dc52b07676bdd823729b4;p=catta diff --git a/initscript/suse/avahi-daemon.in b/initscript/suse/avahi-daemon.in index 851006c..0dc5f9f 100644 --- a/initscript/suse/avahi-daemon.in +++ b/initscript/suse/avahi-daemon.in @@ -2,6 +2,7 @@ ### BEGIN INIT INFO # Provides: avahi # Required-Start: $network $remote_fs dbus +# Required-Stop: $network $remote_fs dbus # Default-Start: 3 5 # Default-Stop: # Short-Description: ZeroConf daemon @@ -25,6 +26,18 @@ case "$1" in $AVAHI_BIN -k 2>/dev/null || /bin/true rc_status -v ;; + try-restart|condrestart) + if test "$1" = "condrestart"; then + echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}" + fi + $0 status + if test $? = 0; then + $0 restart + else + rc_reset + fi + rc_status + ;; restart) $0 stop $0 start @@ -41,7 +54,7 @@ case "$1" in rc_status -v ;; *) - echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" + echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}" exit 1 ;; esac