summaryrefslogtreecommitdiffstats
path: root/etc/inc/vslb.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-03-29 16:25:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-03-29 16:25:20 +0000
commit903c6f6aa28582f3187e3de0e0e998c8a31ec457 (patch)
tree77ad4d52768924f6863e3833f00667e27817f0ec /etc/inc/vslb.inc
parenta53c02196ab519af35efc18be9f597bdf4044558 (diff)
downloadpfsense-903c6f6aa28582f3187e3de0e0e998c8a31ec457.zip
pfsense-903c6f6aa28582f3187e3de0e0e998c8a31ec457.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 54b64a5..1078580 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -101,7 +101,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");
+ if(file_exists("{$g['tmp_path']}/{$vspool['name']}.pool"))
+ unlink("{$g['tmp_path']}/{$vspool['name']}.pool");
/* virtual IP */
$slbdconf .= "\t:vip=127.0.0.1:\\\n";
$slbdconf .= "\t:vip-port=666:\\\n";
OpenPOWER on IntegriCloud