summaryrefslogtreecommitdiffstats
path: root/initscript/Gentoo/avahi
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-06-30 11:35:44 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-06-30 11:35:44 +0000
commitbff096ce462751845bf0a7790a5f55cd0d9069e7 (patch)
tree855db39cae0be6e340342290856111642182d4d3 /initscript/Gentoo/avahi
parentd1a132e5b28680602a64f5d6f9fcfa4072f75cc4 (diff)
renamed debian/gentoo initscript to remove .in, not needed anymore
install gentoo initscript in /etc/init.d git-svn-id: file:///home/lennart/svn/public/avahi/trunk@156 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'initscript/Gentoo/avahi')
-rw-r--r--initscript/Gentoo/avahi28
1 files changed, 28 insertions, 0 deletions
diff --git a/initscript/Gentoo/avahi b/initscript/Gentoo/avahi
new file mode 100644
index 0000000..a37c965
--- /dev/null
+++ b/initscript/Gentoo/avahi
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Avahi ZeroConf Daemon init script
+# Many thanks to the Avahi developer's and Sebastien Estienne
+
+DAEMON=/usr/bin/avahi
+
+depend () {
+ need 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 $?
+}
+