summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2010-08-17 14:15:24 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2010-08-17 14:15:24 -0300
commita57b6d575f3730064a79f175ff772dd766cdb961 (patch)
treea0e22a1f39b8c34b62d7985528ac920105625466 /etc/inc/gwlb.inc
parentf1a44a3a98814171d36584d1cd35e1c444ccc55a (diff)
parent15c5b5d63710f28284a974902d0771ceefbb5e86 (diff)
downloadpfsense-a57b6d575f3730064a79f175ff772dd766cdb961.zip
pfsense-a57b6d575f3730064a79f175ff772dd766cdb961.tar.gz
Merge remote branch 'mainline/master' into inc
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index bea0bed..637d9ac 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -243,11 +243,11 @@ EOD;
killbypid("{$g['varrun_path']}/apinger.pid");
if (is_dir("{$g['tmp_path']}"))
chmod("{$g['tmp_path']}", 01777);
- if (!is_dir("{$g['vardb_path']}/rrd")) {
+ if (!is_dir("{$g['vardb_path']}/rrd"))
mkdir("{$g['vardb_path']}/rrd", 0775);
- }
- if (is_dir("{$g['vardb_path']}/rrd"))
- chown("{$g['vardb_path']}/rrd", "nobody");
+
+ @chown("{$g['vardb_path']}/rrd", "nobody");
+
/* start a new apinger process */
mwexec_bg("/usr/local/sbin/apinger -c {$g['varetc_path']}/apinger.conf");
OpenPOWER on IntegriCloud