summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-26 20:07:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-26 20:07:00 +0000
commit1f0772b8c082a260b1458158164be3b92b4ed4cb (patch)
tree2f9bdd549b07a094bcd587f3919fac869c8f4d53 /etc
parent6a669fb0922b949ab42d7ac40da59777cbae1f80 (diff)
downloadpfsense-1f0772b8c082a260b1458158164be3b92b4ed4cb.zip
pfsense-1f0772b8c082a260b1458158164be3b92b4ed4cb.tar.gz
Do not spam rrd status on bootup, it makes the bootup look out of place
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 9104b68..8673d71 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1994,22 +1994,22 @@ function enable_rrd_graphing()
$rrdupdatesh .= "sleep 60\n";
$rrdupdatesh .= "done\n";
- PRINT "Creating rrd update script\n";
/* write the rrd update script */
$updaterrdscript = "{$g['vardb_path']}/rrd/updaterrd.sh";
$fd = fopen("$updaterrdscript", "w");
fwrite($fd, "$rrdupdatesh");
fclose($fd);
- PRINT "Creating rrd graph index\n";
/* write the index.html script */
$rrdgraphindex = "{$g['vardb_path']}/rrd/index.html";
$fd = fopen("$rrdgraphindex", "w");
fwrite($fd, "$rrdgraphindexhtml");
fclose($fd);
- /* print database creation errors. */
- print "$rrdcreatel\n";
+ /* save rrd error. */
+ $fd = fopen("/tmp/rrd_errors", "w");
+ fwrite($fd, "$rrdcreatel");
+ fclose($fd);
/* kill off traffic collectors */
kill_traffic_collector();
OpenPOWER on IntegriCloud