]> git.meshlink.io Git - catta/blob - initscript/freebsd/avahi-daemon.sh.in
* change process title of chroot() helper process to "chroot helper" dropping
[catta] / initscript / freebsd / avahi-daemon.sh.in
1 #!/bin/sh
2 #
3 # $FreeBSD: /repoman/r/pcvs/ports/net/avahi/files/avahi-daemon.sh,v 1.2 2005/11/19 05:55:56 marcus Exp $
4 #
5 # PROVIDE: avahi_daemon
6 # REQUIRE: DAEMON dbus
7 # KEYWORD: FreeBSD
8 #
9 # Avahi's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
10 #
11
12 avahi_daemon_enable=${avahi_daemon_enable-"NO"}
13 avahi_daemon_flags=${avahi_daemon_flags-"-D"}
14
15 . /etc/rc.subr
16
17 name=avahi_daemon
18 rcvar=`set_rcvar`
19
20 start_cmd=avahi_daemon_start
21 stop_cmd=avahi_daemon_stop
22
23 avahi_daemon_bin=@sbindir@/avahi-daemon
24
25 avahi_daemon_start() {
26     checkyesno avahi_daemon_enable && echo "Starting avahi-daemon." && \
27         ${avahi_daemon_bin} ${avahi_daemon_flags}
28 }
29
30 avahi_daemon_stop() {
31     checkyesno avahi_daemon_enable && echo "Stopping avahi-daemon." && \
32         ${avahi_daemon_bin} -k
33 }
34
35 load_rc_config ${name}
36 run_rc_command "$1"