aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2009-07-15 16:39:21 +0000
committerDoug Barton <dougb@FreeBSD.org>2009-07-15 16:39:21 +0000
commitab95b9267abf3cf9831424c6b41adc09dcc434f2 (patch)
treec0fd1eac74190aee92202a8fdf953bb01207a55c /net
parent182db3c80d5581c028e1b03d0ad144f20f498154 (diff)
downloadports-ab95b9267abf3cf9831424c6b41adc09dcc434f2.tar.gz
ports-ab95b9267abf3cf9831424c6b41adc09dcc434f2.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/howl/files/mdnsresponder.in20
1 files changed, 6 insertions, 14 deletions
diff --git a/net/howl/files/mdnsresponder.in b/net/howl/files/mdnsresponder.in
index f0ad7b25a12b..80f1662ee300 100644
--- a/net/howl/files/mdnsresponder.in
+++ b/net/howl/files/mdnsresponder.in
@@ -6,28 +6,20 @@
# REQUIRE: DAEMON
#
# Howl's mDNSResponder, a Zeroconf (Bonjour) service advertisement daemon.
-#
-mdnsresponder_enable=${mdnsresponder_enable-"NO"}
-mdnsresponder_flags=${mdnsresponder_flags-""}
+# Add the following lines to /etc/rc.conf to enable mdnsresponder:
+# mdnsresponder_enable="YES"
+# mdnsresponder_flags="<set as needed>"
. %%RC_SUBR%%
name=mdnsresponder
rcvar=`set_rcvar`
-start_cmd=mdnsresponder_start
-stop_cmd=mdnsresponder_stop
+command=%%PREFIX%%/bin/mDNSResponder
-mdnsresponder_start() {
- checkyesno mdnsresponder_enable && echo "Starting mDNSResponder." && \
- %%PREFIX%%/bin/mDNSResponder ${mdnsresponder_flags}
-}
+load_rc_config ${name}
-mdnsresponder_stop() {
- checkyesno mdnsresponder_enable && echo "Stopping mDNSResponder." && \
- killall mDNSResponder
-}
+mdnsresponder_enable=${mdnsresponder_enable-"NO"}
-load_rc_config ${name}
run_rc_command "$1"