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