aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fwknop/fwknopd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fwknop/fwknopd.initd')
-rw-r--r--testing/fwknop/fwknopd.initd9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/fwknop/fwknopd.initd b/testing/fwknop/fwknopd.initd
new file mode 100644
index 0000000000..fe513f0914
--- /dev/null
+++ b/testing/fwknop/fwknopd.initd
@@ -0,0 +1,9 @@
+#!/sbin/runscript
+
+pidfile="/var/run/fwknop/fwknopd.pid"
+command=/usr/sbin/fwknopd
+command_args="--pid-file $pidfile $fwknopd_args"
+
+start_pre() {
+ checkpath --directory ${pidfile%/*}
+}