summaryrefslogtreecommitdiffstats
path: root/initscript/gentoo/avahi-daemon.in
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-23 11:28:40 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-23 11:28:40 +0000
commit6580b8389158f1bb43771f118583c48b1e2035e1 (patch)
treeb48812ae3ba88bf6cf5edff3631c5afbc42730e3 /initscript/gentoo/avahi-daemon.in
parent386c9428d669750dfa4a69005b0cb66f8dcd28ba (diff)
* New gentoo init scripts from Sven Wegener
* Fix creation of /avahi when compiling without python (thanks Sven Wegener for that too) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@413 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'initscript/gentoo/avahi-daemon.in')
-rw-r--r--initscript/gentoo/avahi-daemon.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/initscript/gentoo/avahi-daemon.in b/initscript/gentoo/avahi-daemon.in
new file mode 100644
index 0000000..a4b25db
--- /dev/null
+++ b/initscript/gentoo/avahi-daemon.in
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# $Id$
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/www/www.gentoo.org/raw_cvs/gentoo-x86/net-dns/avahi/files/avahi.initd,v 1.2 2005/08/22 03:47:19 swegener Exp $
+
+opts="${opts} reload"
+
+depend() {
+ use net dbus
+}
+
+start() {
+ ebegin "Starting avahi-daemon"
+ @sbindir@/avahi-daemon -D
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping avahi-daemon"
+ @sbindir@/avahi-daemon -k
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading avahi-daemon"
+ @sbindir@/avahi-daemon -r
+ eend $?
+}