aboutsummaryrefslogtreecommitdiff
path: root/rodiscd.init.gentoo
blob: 154168868d459c06181efcde0ea49fa3e82042f7 (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 "Starting ${SVCNAME}"
	start-stop-daemon --stop --exec "${command}" \
		--pidfile "${pidfile}"
	eend $?
}