summaryrefslogtreecommitdiff
path: root/net/howl/files/mdnsresponder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/howl/files/mdnsresponder.sh')
-rw-r--r--net/howl/files/mdnsresponder.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/howl/files/mdnsresponder.sh b/net/howl/files/mdnsresponder.sh
new file mode 100644
index 000000000000..1b94c1e60b5a
--- /dev/null
+++ b/net/howl/files/mdnsresponder.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: mdnsresponder
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD
+#
+# Howl's mDNSResponder, a Zeroconf (Rendezvous) service advertisement daemon.
+#
+
+mdnsresponder_enable=${mdnsresponder_enable-"NO"}
+mdnsresponder_flags=${mdnsresponder_flags-""}
+
+. %%RC_SUBR%%
+
+name=mdnsresponder
+rcvar=`set_rcvar`
+
+start_cmd=mdnsresponder_start
+stop_cmd=mdnsresponder_stop
+
+mdnsresponder_start() {
+ checkyesno mdnsresponder_enable && echo "Starting mDNSResponder." && \
+ %%PREFIX%%/bin/mDNSResponder ${mdnsresponder_flags}
+}
+
+mdnsresponder_stop() {
+ checkyesno mdnsresponder_enable && echo "Stopping mDNSResponder." && \
+ killall mDNSResponder
+}
+
+load_rc_config ${name}
+run_rc_command "$1"