mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-14 17:01:32 +02:00
22 lines
473 B
Plaintext
22 lines
473 B
Plaintext
#!/sbin/runscript
|
|
|
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
|
DESC="openvcpd"
|
|
NAME=openvcpd
|
|
DAEMON=/usr/bin/$NAME
|
|
DAEMON_ARGS=""
|
|
PIDFILE=/var/run/$NAME.pid
|
|
SCRIPTNAME=/etc/init.d/$NAME
|
|
|
|
start() {
|
|
ebegin "OpenVCP Starting"
|
|
start-stop-daemon --start --quiet --background --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS || return 1
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "OpenVCP Stopping"
|
|
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME
|
|
eend $?
|
|
}
|