]> git.meshlink.io Git - catta/blob - initscript/Gentoo/avahi-daemon
532d108c80484356cbfcf06d5e6f9217d98543c9
[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
5 DAEMON=/usr/bin/avahi-daemon
6
7 depend () {
8         need dbus
9 }
10
11 start() {
12         ebegin "Starting avahi"
13         $DAEMON -D
14         eend $?
15 }
16
17 stop() {
18         ebegin "Stopping avahi"
19         $DAEMON -k || /bin/true
20         eend $?
21 }
22
23 reload() {
24         ebegin "Reloading avahi configuration"
25         $DAEMON -r
26         eend $?
27 }
28