summaryrefslogtreecommitdiff
path: root/packages/bonjour/files/bonjour.init
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-01-30 20:06:55 +0100
committerKoen Kooi <koen@openembedded.org>2009-01-30 20:06:55 +0100
commitaf7f93c01dcf16df34e6bcccfacca868b19d4247 (patch)
tree31fb1ed2cc1396c1718f5fd538b8c5450b91ddae /packages/bonjour/files/bonjour.init
parent2a288bbc3638f6a77b5516968c839ac5b61d5c8a (diff)
bonjour: add 107.6 (from gumstix)
Diffstat (limited to 'packages/bonjour/files/bonjour.init')
-rwxr-xr-xpackages/bonjour/files/bonjour.init48
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/bonjour/files/bonjour.init b/packages/bonjour/files/bonjour.init
new file mode 100755
index 0000000000..1413ca6c12
--- /dev/null
+++ b/packages/bonjour/files/bonjour.init
@@ -0,0 +1,48 @@
+#!/bin/sh
+#
+# A startup script for the Rendezvous mDNS Responder
+#
+
+set -e
+
+RDV_CONF=/etc/bonjour.conf
+prog=bonjour
+exe=/usr/sbin/mdnsd
+
+start() {
+ echo -n "Starting $prog: "
+ start-stop-daemon --start -x $exe -- -f $RDV_CONF -b
+ echo
+}
+
+stop() {
+ echo -n "Stopping $prog: "
+ start-stop-daemon --stop -x $exe
+ echo
+}
+
+reload()
+{
+ echo -n "Reloading $prog:"
+ killall -HUP `basename $exe`
+ echo
+}
+
+case "$1" in
+start)
+ start
+ ;;
+stop)
+ stop
+ ;;
+reload)
+ reload
+ ;;
+restart)
+ stop
+ start
+ ;;
+*)
+ echo "Usage: bonjour {start|stop|reload|restart}"
+ exit 1
+esac