From 6580b8389158f1bb43771f118583c48b1e2035e1 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Tue, 23 Aug 2005 11:28:40 +0000 Subject: * 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 --- initscript/gentoo/avahi-daemon.in | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 initscript/gentoo/avahi-daemon.in (limited to 'initscript/gentoo/avahi-daemon.in') 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 $? +} -- cgit