summaryrefslogtreecommitdiffstats
path: root/contrib/gentoo/funcd-init.d
blob: d3ed3826870eb6381cdac32469e2894f4d1b09f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/runscript

depend() {
	need net
}

start() {
	ebegin "Starting funcd"
	start-stop-daemon --start --background --make-pidfile \
	                  --pidfile /var/run/funcd.pid   \
			  --exec /usr/bin/funcd
	eend $? "Failed to start funcd"
}

stop() {
	ebegin "Stopping funcd"
	start-stop-daemon --stop --quiet --pidfile /var/run/funcd.pid
	eend $? "Failed to stop funcd"
}