summaryrefslogtreecommitdiffstats
path: root/initscript/gentoo/avahi-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'initscript/gentoo/avahi-daemon')
-rw-r--r--initscript/gentoo/avahi-daemon30
1 files changed, 30 insertions, 0 deletions
diff --git a/initscript/gentoo/avahi-daemon b/initscript/gentoo/avahi-daemon
new file mode 100644
index 0000000..8b3a359
--- /dev/null
+++ b/initscript/gentoo/avahi-daemon
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Avahi ZeroConf Daemon init script
+# Many thanks to the Avahi developer's and Sebastien Estienne
+# Author: Steev Klimaszewski <steev@steev.net>
+
+DAEMON=/usr/bin/avahi-daemon
+
+depend () {
+ need net
+ use dbus
+}
+
+start() {
+ ebegin "Starting avahi"
+ $DAEMON -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi"
+ $DAEMON -k || /bin/true
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi configuration"
+ $DAEMON -r
+ eend $?
+}
+