aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvcp/openvcp.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openvcp/openvcp.initd')
-rw-r--r--testing/openvcp/openvcp.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/openvcp/openvcp.initd b/testing/openvcp/openvcp.initd
new file mode 100644
index 0000000000..9acc4d1092
--- /dev/null
+++ b/testing/openvcp/openvcp.initd
@@ -0,0 +1,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 $?
+}