aboutsummaryrefslogtreecommitdiffstats
path: root/testing/captagent/captagent.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/captagent/captagent.initd')
-rw-r--r--testing/captagent/captagent.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/captagent/captagent.initd b/testing/captagent/captagent.initd
new file mode 100644
index 0000000000..0b182e6403
--- /dev/null
+++ b/testing/captagent/captagent.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+
+command=/usr/bin/captagent
+pidfile=/var/run/${SVCNAME}.pid
+conf=/etc/captagent/${SVCNAME}.xml
+
+#start_stop_daemon_args="--make-pidfile"
+
+depend() {
+ need net
+ after firewall
+}
+
+start_pre() {
+ #checkpath --directory ${pidfile%/*}
+ command_args="-d -f $conf"
+}
+