aboutsummaryrefslogtreecommitdiff
path: root/rodiscd.init.gentoo
blob: a87d5751e81f189b47702285a1e3e3992525e036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript

command="/usr/sbin/${SVCNAME}"
pidfile="/var/run/${SVCNAME}.pid"

depend() {
	need avahi-daemon
}

start() {
	ebegin "Starting ${SVCNAME}"
	start-stop-daemon --start --exec "${command}" \
		--pidfile "${pidfile}" --make-pidfile --background
	eend $?
}

stop() {
	ebegin "Stopping ${SVCNAME}"
	start-stop-daemon --stop --exec "${command}" \
		--pidfile "${pidfile}"
	eend $?
}