]> git.meshlink.io Git - catta/blob - initscript/Gentoo/avahi-daemon
adding/updating avahi initscript for gentoo
[catta] / initscript / Gentoo / avahi-daemon
1 #!/sbin/runscript
2 # Avahi ZeroConf Daemon init script
3 # Many thanks to the Avahi developer's and Sebastien Estienne
4 # Author:               Steev Klimaszewski <steev@steev.net>
5
6 DAEMON=/usr/bin/avahi-daemon
7
8 depend () {
9         need net
10         use dbus
11 }
12
13 start() {
14         ebegin "Starting avahi"
15         $DAEMON -D
16         eend $?
17 }
18
19 stop() {
20         ebegin "Stopping avahi"
21         $DAEMON -k || /bin/true
22         eend $?
23 }
24
25 reload() {
26         ebegin "Reloading avahi configuration"
27         $DAEMON -r
28         eend $?
29 }
30