aports/testing/openvcp/openvcp.initd

21 lines
388 B
Plaintext

#!/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 $?
}