aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ajaxterm/ajaxterm.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-04-03 07:29:46 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-04-03 07:29:46 +0000
commiteeba926c54283efef1ee09a03af13d7f0c427cda (patch)
treea884c366f6cf8453e3901fff8e65e2ba5faad1f3 /testing/ajaxterm/ajaxterm.initd
parent027945a6923d34041d4d51ec0e545b16766ac1c7 (diff)
downloadaports-eeba926c54283efef1ee09a03af13d7f0c427cda.tar.bz2
aports-eeba926c54283efef1ee09a03af13d7f0c427cda.tar.xz
testing/ajaxterm: new apkbuild
Diffstat (limited to 'testing/ajaxterm/ajaxterm.initd')
-rw-r--r--testing/ajaxterm/ajaxterm.initd21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/ajaxterm/ajaxterm.initd b/testing/ajaxterm/ajaxterm.initd
new file mode 100644
index 0000000000..f09b9b429f
--- /dev/null
+++ b/testing/ajaxterm/ajaxterm.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+
+depend()
+{
+ need net
+}
+
+start()
+{
+ ebegin "Starting AjaxTerm on port $PORT"
+ start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --uid=nobody
+ eend $?
+}
+
+stop()
+{
+ ebegin "Stopping AjaxTerm"
+ start-stop-daemon --stop --pidfile $PIDFILE
+ rm -f $PIDFILE
+ eend $?
+}