testing/fwknop: fix initd

This fixes a possible failure to start on boot:

pcap_open_live() error: eth0: That device is not up
This commit is contained in:
Stuart Cardall 2015-06-30 00:32:49 +00:00 committed by Francesco Colista
parent 4f3b691340
commit c0bb8a5aee

View File

@ -4,6 +4,11 @@ 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%/*}
}