aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-06-30 00:32:49 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-06-30 11:25:10 +0000
commitc0bb8a5aeee6be3d78edb903268eeddafb46232c (patch)
treeca4baef03888ed8d36e641ac755dcc47803f6705
parent4f3b691340594aaa7cb30ef55b892fcddec3933c (diff)
downloadaports-c0bb8a5aeee6be3d78edb903268eeddafb46232c.tar.bz2
aports-c0bb8a5aeee6be3d78edb903268eeddafb46232c.tar.xz
testing/fwknop: fix initd
This fixes a possible failure to start on boot: pcap_open_live() error: eth0: That device is not up
-rw-r--r--testing/fwknop/fwknopd.initd5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/fwknop/fwknopd.initd b/testing/fwknop/fwknopd.initd
index 0dfb976535..62494d3e41 100644
--- a/testing/fwknop/fwknopd.initd
+++ b/testing/fwknop/fwknopd.initd
@@ -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%/*}
}