aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvcp/openvcp.initd
blob: 609dac6128f8d7b0241820478f3a04e1d4d32156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/runscript

depend () {
	use net
	after firewall
}

start() {
	ebegin "OpenVCP Starting"
	start-stop-daemon --start --quiet --background --exec /bin/openvcpd || return 1
	eend $?
}

stop() {
	ebegin "OpenVCP Stopping"
	kpid=`cat /var/run/openvcpd.pid`
	kill -kill `expr $kpid - 1`
	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile /var/run/openvcpd.pid
	eend $?
}