diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2014-04-22 10:03:36 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2014-04-22 10:03:42 +0000 |
commit | a8ee430110dd5cf178ff5cc2e2b8f29323f12c19 (patch) | |
tree | 605a7133a8a41aef48154efc08a95d6de74bf3fe /testing/ipvsadm/ipvsadm.initd | |
parent | a11a0936fff7d85f5c3443540623ea1c12e0ddbe (diff) | |
download | aports-a8ee430110dd5cf178ff5cc2e2b8f29323f12c19.tar.bz2 aports-a8ee430110dd5cf178ff5cc2e2b8f29323f12c19.tar.xz |
testing/ipvsadm: improve initd
Diffstat (limited to 'testing/ipvsadm/ipvsadm.initd')
-rw-r--r-- | testing/ipvsadm/ipvsadm.initd | 4 |
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 |