aports/testing/fwknop/fwknopd.initd
Stuart Cardall c0bb8a5aee testing/fwknop: fix initd
This fixes a possible failure to start on boot:

pcap_open_live() error: eth0: That device is not up
2015-06-30 11:25:10 +00:00

15 lines
231 B
Plaintext

#!/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%/*}
}