]> git.meshlink.io Git - catta/blob - initscript/gentoo/avahi-daemon.in
02eefe68633c6cfe9245fdd840fbe85248449958
[catta] / initscript / gentoo / avahi-daemon.in
1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 opts="reload"
6
7 depend() {
8         before netmount nfsmount
9         use net
10         need 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 }