summaryrefslogtreecommitdiffstats
path: root/etc/inc/vslb.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-29 16:46:15 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-29 16:46:15 +0000
commit7604679a1bd06b5f8ccfe5a2ae50031353f6f02b (patch)
treec90fe3ce52f1cd2a8abbae56cba6d0b636563d9a /etc/inc/vslb.inc
parent1833f54d7475e8cbb1a28612dce9a3b896544c58 (diff)
downloadpfsense-7604679a1bd06b5f8ccfe5a2ae50031353f6f02b.zip
pfsense-7604679a1bd06b5f8ccfe5a2ae50031353f6f02b.tar.gz
Unlink pool file only if it exists
Diffstat (limited to 'etc/inc/vslb.inc')
-rw-r--r--etc/inc/vslb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index 1078580..9008fef 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -55,7 +55,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");
+ if(file_exists("{$g['tmp_path']}/{$vsent['name']}.pool"))
+ unlink("{$g['tmp_path']}/{$vsent['name']}.pool");
/* virtual IP */
$slbdconf .= "\t:vip={$vsent['ipaddr']}:\\\n";
/* virtual port */
OpenPOWER on IntegriCloud