aboutsummaryrefslogtreecommitdiffstats
path: root/community/fwknop/fwknopd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/fwknop/fwknopd.initd')
-rw-r--r--community/fwknop/fwknopd.initd14
1 files changed, 14 insertions, 0 deletions
diff --git a/community/fwknop/fwknopd.initd b/community/fwknop/fwknopd.initd
new file mode 100644
index 0000000000..62494d3e41
--- /dev/null
+++ b/community/fwknop/fwknopd.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+
+pidfile="/var/run/fwknop/fwknopd.pid"
+command=/usr/sbin/fwknopd
+command_args="--pid-file $pidfile $fwknopd_args"
+
+depend() {
+ use logger
+ after net
+}
+
+start_pre() {
+ checkpath --directory ${pidfile%/*}
+}