summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-06 09:48:04 -0400
committerjim-p <jimp@pfsense.org>2010-08-06 09:48:42 -0400
commit21934843352aa1dee730f59b06d35f1619c0ab3e (patch)
tree893aaf4e769e25fc8d0a22db674abc69c2c2e73d /etc
parent62663b540871f35083e182fe77f85cd1bcedf9f8 (diff)
downloadpfsense-21934843352aa1dee730f59b06d35f1619c0ab3e.zip
pfsense-21934843352aa1dee730f59b06d35f1619c0ab3e.tar.gz
Make sure that the RRD path exists before apinger is started. Should really fix quality graphs on NanoBSD.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 2ff52a1..f574d8e 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -243,6 +243,9 @@ 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")) {
+ mkdir("{$g['vardb_path']}/rrd", 0775);
+ }
if (is_dir("{$g['vardb_path']}/rrd"))
chown("{$g['vardb_path']}/rrd", "nobody");
/* start a new apinger process */
OpenPOWER on IntegriCloud