1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/fwknop/fwknopd.initd

20 lines
386 B
Text

#!/sbin/openrc-run
: ${cfgfile:="/etc/fwknop/fwknopd.conf"}
pidfile="/var/run/fwknop/fwknopd.pid"
command=/usr/sbin/fwknopd
# $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
}
start_pre() {
checkpath --directory ${pidfile%/*}
}