3 # $FreeBSD: /repoman/r/pcvs/ports/net/avahi/files/avahi-daemon.sh,v 1.2 2005/11/19 05:55:56 marcus Exp $
5 # PROVIDE: avahi_daemon
9 # Avahi's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
12 avahi_daemon_enable=${avahi_daemon_enable-"NO"}
13 avahi_daemon_flags=${avahi_daemon_flags-"-D"}
20 start_cmd=avahi_daemon_start
21 stop_cmd=avahi_daemon_stop
23 avahi_daemon_bin=@sbindir@/avahi-daemon
25 avahi_daemon_start() {
26 checkyesno avahi_daemon_enable && echo "Starting avahi-daemon." && \
27 ${avahi_daemon_bin} ${avahi_daemon_flags}
31 checkyesno avahi_daemon_enable && echo "Stopping avahi-daemon." && \
32 ${avahi_daemon_bin} -k
35 load_rc_config ${name}