diff options
-rw-r--r-- | etc/inc/vslb.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 5a5979e..54b64a5 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -54,6 +54,8 @@ function slbd_configure() { /* pool name */ $slbdconf .= "\t:poolname={$vsent['name']}:\\\n"; + /* remove pool status files so we don't end up with a mismatch */ + unlink("{$g['tmp_path']}/{$vsent['name']}.pool"); /* virtual IP */ $slbdconf .= "\t:vip={$vsent['ipaddr']}:\\\n"; /* virtual port */ @@ -98,6 +100,8 @@ function slbd_configure() { /* pool name */ $slbdconf .= "\t:poolname={$vspool['name']}:\\\n"; + /* remove pool status files so we don't end up with a mismatch */ + unlink("{$g['tmp_path']}/{$vspool['name']}.pool"); /* virtual IP */ $slbdconf .= "\t:vip=127.0.0.1:\\\n"; $slbdconf .= "\t:vip-port=666:\\\n"; @@ -153,4 +157,4 @@ function slbd_configure() { } } -?>
\ No newline at end of file +?> |