summaryrefslogtreecommitdiffstats
path: root/initscript/SUSE/avahi-daemon
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-07-06 16:19:41 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-07-06 16:19:41 +0000
commitb1e07e8d002b0078a3b56a22979f47bcccf73306 (patch)
tree54c84618a797828bb9a856b7785f1451a81136fe /initscript/SUSE/avahi-daemon
parentaaa1c563f5f89f3f1e333a031cf71056fdc50e5e (diff)
renamed avahi to avahi-daemon
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@166 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'initscript/SUSE/avahi-daemon')
-rw-r--r--initscript/SUSE/avahi-daemon47
1 files changed, 47 insertions, 0 deletions
diff --git a/initscript/SUSE/avahi-daemon b/initscript/SUSE/avahi-daemon
new file mode 100644
index 0000000..59bd0c9
--- /dev/null
+++ b/initscript/SUSE/avahi-daemon
@@ -0,0 +1,47 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides: avahi
+# Required-Start: $network dbus
+# Default-Start: 3 5
+# Default-Stop:
+# Description: Avahi, a ZeroConf daemon for mDNS and service registration
+### END INIT INFO
+
+AVAHI_BIN=/usr/bin/avahi-daemon
+test -x $AVAHI_BIN || exit 5
+
+. /etc/rc.status
+rc_reset
+
+case "$1" in
+ start)
+ echo -n "Starting Avahi daemon"
+ startproc $AVAHI_BIN -D
+ rc_status -v
+ ;;
+ stop)
+ echo -n "Shutting down Avahi daemon"
+ killproc -TERM $AVAHI_BIN
+ rc_status -v
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ rc_status
+ ;;
+ force-reload|reload)
+ echo -n "Reloading Avahi daemon"
+ killproc -HUP $AVAHI_BIN
+ rc_status -v
+ ;;
+ status)
+ echo -n "Checking for Avahi daemon: "
+ checkproc $AVAHI_BIN
+ rc_status -v
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
+ exit 1
+ ;;
+esac
+