summaryrefslogtreecommitdiffstats
path: root/initscript/Gentoo/avahi-daemon
blob: 532d108c80484356cbfcf06d5e6f9217d98543c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/sbin/runscript
# Avahi ZeroConf Daemon init script
# Many thanks to the Avahi developer's and Sebastien Estienne

DAEMON=/usr/bin/avahi-daemon

depend () {
	need dbus
}

start() {
	ebegin "Starting avahi"
        $DAEMON -D
	eend $?
}

stop() {
	ebegin "Stopping avahi"
	$DAEMON -k || /bin/true
	eend $?
}

reload() {
	ebegin "Reloading avahi configuration"
        $DAEMON -r
	eend $?
}