mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 03:11:18 +02:00
21 lines
388 B
Plaintext
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 $?
|
|
}
|