X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=initscript%2Fsuse%2Favahi-dnsconfd.in;fp=initscript%2Fsuse%2Favahi-dnsconfd.in;h=b9de80867c9b850ea004dcf1db62e0bd80677e6d;hb=09b102d429c483d92d269622e2ce748e69abf5f9;hp=0000000000000000000000000000000000000000;hpb=1faa5fc6cebd81807120c3d419e9c734172f196a;p=catta diff --git a/initscript/suse/avahi-dnsconfd.in b/initscript/suse/avahi-dnsconfd.in new file mode 100644 index 0000000..b9de808 --- /dev/null +++ b/initscript/suse/avahi-dnsconfd.in @@ -0,0 +1,47 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: avahi-dnsconfd +# Required-Start: avahi +# Default-Start: 3 5 +# Default-Stop: +# Description: Avahi, a ZeroConf daemon for mDNS and service registration +### END INIT INFO + +AVAHI_BIN=@sbindir@/avahi-dnsconfd +test -x $AVAHI_BIN || exit 5 + +. /etc/rc.status +rc_reset + +case "$1" in + start) + echo -n "Starting Avahi DNS Configuration daemon" + /sbin/startproc $AVAHI_BIN -D + rc_status -v + ;; + stop) + echo -n "Shutting down Avahi DNS Configuration daemon" + $AVAHI_BIN -k || /bin/true + rc_status -v + ;; + restart) + $0 stop + $0 start + rc_status + ;; + force-reload|reload) + echo -n "Reloading Avahi DNS Configuration daemon" + $AVAHI_BIN -r + rc_status -v + ;; + status) + echo -n "Checking for Avahi DNS Configuration daemon: " + $AVAHI_BIN -c + rc_status -v + ;; + *) + echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" + exit 1 + ;; +esac +