summaryrefslogtreecommitdiffstats
path: root/testing/openxcap/openxcap.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/openxcap/openxcap.initd')
-rw-r--r--testing/openxcap/openxcap.initd23
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/openxcap/openxcap.initd b/testing/openxcap/openxcap.initd
new file mode 100644
index 000000000..69108afd8
--- /dev/null
+++ b/testing/openxcap/openxcap.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+#
+
+daemon=/usr/bin/openxcap
+pidfile=/var/run/openxcap/openxcap.pid
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting OpenXCAP Presence Server"
+ start-stop-daemon --start --quiet --pidfile $pidfile --exec $daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping OpenXCAP Presence Server"
+ start-stop-daemon --stop --quiet --signal 15 --pidfile $pidfile
+ eend $?
+}
+