aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ipvsadm/ipvsadm.initd
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2014-04-22 10:03:36 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2014-04-22 10:03:42 +0000
commita8ee430110dd5cf178ff5cc2e2b8f29323f12c19 (patch)
tree605a7133a8a41aef48154efc08a95d6de74bf3fe /testing/ipvsadm/ipvsadm.initd
parenta11a0936fff7d85f5c3443540623ea1c12e0ddbe (diff)
downloadaports-a8ee430110dd5cf178ff5cc2e2b8f29323f12c19.tar.bz2
aports-a8ee430110dd5cf178ff5cc2e2b8f29323f12c19.tar.xz
testing/ipvsadm: improve initd
Diffstat (limited to 'testing/ipvsadm/ipvsadm.initd')
-rw-r--r--testing/ipvsadm/ipvsadm.initd4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/ipvsadm/ipvsadm.initd b/testing/ipvsadm/ipvsadm.initd
index 0e9399482e..17a4bfac5e 100644
--- a/testing/ipvsadm/ipvsadm.initd
+++ b/testing/ipvsadm/ipvsadm.initd
@@ -10,6 +10,9 @@ depend() {
}
checkconfig() {
+
+ checkpath --directory /var/lib/ipvsadm
+
if [ ! -f /var/lib/ipvsadm/rules-save ] ; then
eerror "Not starting ipvsadm. First create some rules then run"
eerror "/etc/init.d/ipvsadm save"
@@ -18,6 +21,7 @@ checkconfig() {
}
start() {
+ checkconfig || return 1
ebegin "Starting ipvsadm"
einfo "Clearing previous rules"
ipvsadm -C