]> git.meshlink.io Git - catta/blob - initscript/gentoo/avahi-daemon.in
* New gentoo init scripts from Sven Wegener
[catta] / initscript / gentoo / avahi-daemon.in
1 #!/sbin/runscript
2 # $Id$
3 # Copyright 1999-2005 Gentoo Foundation
4 # Distributed under the terms of the GNU General Public License v2
5 # $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 $
6
7 opts="${opts} reload"
8
9 depend() {
10         use net dbus
11 }
12
13 start() {
14         ebegin "Starting avahi-daemon"
15         @sbindir@/avahi-daemon -D
16         eend $?
17 }
18
19 stop() {
20         ebegin "Stopping avahi-daemon"
21         @sbindir@/avahi-daemon -k
22         eend $?
23 }
24
25 reload() {
26         ebegin "Reloading avahi-daemon"
27         @sbindir@/avahi-daemon -r
28         eend $?
29 }