X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Fsuse%2Favahi-dnsconfd.in;h=b88660ba77497bd8a777ad794040669ee929808f;hb=938b5f883fbaa642e3acb7720e37f95f3d72be62;hp=e633b8d16cd168bab3a228fb47473966c6c73b2e;hpb=9ca72e77965a71eee07bead21d2e1a54ebd60d67;p=catta diff --git a/initscript/suse/avahi-dnsconfd.in b/initscript/suse/avahi-dnsconfd.in index e633b8d..b88660b 100644 --- a/initscript/suse/avahi-dnsconfd.in +++ b/initscript/suse/avahi-dnsconfd.in @@ -2,6 +2,7 @@ ### BEGIN INIT INFO # Provides: avahi-dnsconfd # Required-Start: $remote_fs avahi +# Required-Stop: $remote_fs avahi # Default-Start: 3 5 # Default-Stop: # Short-Description: ZeroConf daemon @@ -30,6 +31,18 @@ case "$1" in $0 start rc_status ;; + 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 + ;; force-reload|reload) echo -n "Reloading Avahi DNS Configuration daemon " $AVAHI_BIN -r @@ -37,11 +50,11 @@ case "$1" in ;; status) echo -n "Checking for Avahi DNS Configuration daemon: " - $AVAHI_BIN -c + $AVAHI_BIN -c || _rc_status=3 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