aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qpage/qpage.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2011-02-24 16:48:39 +0000
committerLeonardo Arena <rnalrd@gmail.com>2011-02-25 09:50:42 +0000
commitfc9682d362eef443a47c9bdd5ef486379f4bac96 (patch)
tree93bb2169fc8e69830454896493f28ed4274079e2 /testing/qpage/qpage.initd
parenta0164a736263fbbf82ba772dc55dbc5a3964ccb9 (diff)
downloadaports-fc9682d362eef443a47c9bdd5ef486379f4bac96.tar.bz2
aports-fc9682d362eef443a47c9bdd5ef486379f4bac96.tar.xz
testing/qpage: new aport - Simple SNPP Client/Server
Diffstat (limited to 'testing/qpage/qpage.initd')
-rw-r--r--testing/qpage/qpage.initd25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/qpage/qpage.initd b/testing/qpage/qpage.initd
new file mode 100644
index 0000000000..6d5528766a
--- /dev/null
+++ b/testing/qpage/qpage.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+#
+# Startup for QuickPage
+#
+
+OPTS_ARGS="q10"
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+start() {
+ ebegin "Starting QuickPage daemon"
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec qpage -- ${OPTS_ARGS} >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping QuickPage daemon"
+
+ pid=`ps -e | grep qpage | awk '{print $1}'`
+ if [ ! -z "$pid" ]; then
+ kill $pid > /dev/null 2>&1
+ fi
+ eend $?
+}
+exit 0