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.initd10
1 files changed, 8 insertions, 2 deletions
diff --git a/community/fwknop/fwknopd.initd b/community/fwknop/fwknopd.initd
index 62494d3e41c..d453c1dee11 100644
--- a/community/fwknop/fwknopd.initd
+++ b/community/fwknop/fwknopd.initd
@@ -1,12 +1,18 @@
#!/sbin/openrc-run
+: ${cfgfile:="/etc/fwknop/fwknopd.conf"}
+
pidfile="/var/run/fwknop/fwknopd.pid"
command=/usr/sbin/fwknopd
-command_args="--pid-file $pidfile $fwknopd_args"
+# $fwknopd_args is here for backward compatibility only
+command_args="-f -c $cfgfile ${command_args:-$fwknopd_args}"
+command_background="yes"
+
+required_files="$cfgfile"
depend() {
use logger
- after net
+ after net
}
start_pre() {