summaryrefslogtreecommitdiffstats
path: root/testing/openvcp/openvcp.initd
blob: 9acc4d1092194fd2a0215a4188bc282d4fd43cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 $?
}