summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-03-20 21:16:39 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-03-20 21:16:39 +0000
commit6e489ce20855add1183615a2855ca234b6acb942 (patch)
tree2b11191c83e009699ed9357dce632a9518ea4114 /etc
parent91bf75df66c0ceb47629a3fd710c951d7dd4a187 (diff)
downloadpfsense-6e489ce20855add1183615a2855ca234b6acb942.zip
pfsense-6e489ce20855add1183615a2855ca234b6acb942.tar.gz
Remove load balancer pool status file when we reconfigure a pool.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vslb.inc6
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
+?>
OpenPOWER on IntegriCloud