]> git.meshlink.io Git - catta/blob - initscript/gentoo/avahi-daemon.in
* Re-enable use of gentoo initscripts
[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
6 opts="${opts} reload"
7
8 depend() {
9         use net dbus
10 }
11
12 start() {
13         ebegin "Starting avahi-daemon"
14         @sbindir@/avahi-daemon -D
15         eend $?
16 }
17
18 stop() {
19         ebegin "Stopping avahi-daemon"
20         @sbindir@/avahi-daemon -k
21         eend $?
22 }
23
24 reload() {
25         ebegin "Reloading avahi-daemon"
26         @sbindir@/avahi-daemon -r
27         eend $?
28 }