summaryrefslogtreecommitdiffstats
path: root/testing/openvcp/openvcp.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-25 08:39:40 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-02-25 09:50:42 +0000
commit75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993 (patch)
tree8832efd2965aac9b5199209afb0ab288022468dd /testing/openvcp/openvcp.initd
parent977144e17397d8550fb184f49d07f9f2bdab5bb3 (diff)
downloadaports-75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993.tar.bz2
aports-75e1b9ffb96ed1cdcc9c823ce9ae4ba9a1547993.tar.xz
testing/openvcp: new aport - ref. feature #484
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 000000000..9acc4d109
--- /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 $?
+}