summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-12-21 00:42:41 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-12-21 00:42:41 +0000
commit569e1af12ae64fbf37655417dcdd4350c0733f78 (patch)
treebed234919fe60a6ffa8b6b1ed59dd5f3219ad703 /etc
parent40d971530874ff4869c219e482778414fb64bd70 (diff)
downloadpfsense-569e1af12ae64fbf37655417dcdd4350c0733f78.zip
pfsense-569e1af12ae64fbf37655417dcdd4350c0733f78.tar.gz
Redirect stderr so we can log it to the system logs.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 01f5e1b..e3fb61a 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -2089,7 +2089,7 @@ endif;
foreach($databases as $database) {
log_error("Migrate RRD database {$rrddbpath}/{$database} to new format");
echo "Migrate RRD database {$rrddbpath}/{$database} to new format \n";
- mwexec("$rrdtool tune {$rrddbpath}{$database} -r roundtrip:delay ");
+ mwexec("$rrdtool tune {$rrddbpath}{$database} -r roundtrip:delay 2>&1");
}
/* let apinger recreate required files */
setup_gateways_monitor();
@@ -2108,8 +2108,8 @@ endif;
log_error("Migrate RRD database {$rrddbpath}/{$database} to new format");
echo "Migrate RRD database {$rrddbpath}/{$database} to new format \n";
/* rename DS source */
- mwexec("$rrdtool tune {$rrddbpath}/{$database} -r in:inpass");
- mwexec("$rrdtool tune {$rrddbpath}/{$database} -r out:outpass");
+ mwexec("$rrdtool tune {$rrddbpath}/{$database} -r in:inpass 2>&1");
+ mwexec("$rrdtool tune {$rrddbpath}/{$database} -r out:outpass 2>71");
/* dump contents to xml and move database out of the way */
dump_rrd_to_xml("{$rrddbpath}/{$database}", "{$g['tmp_path']}/{$xmldump}");
@@ -2145,7 +2145,7 @@ endif;
$rrdxmlarray = migrate_rrd_format($rrdold, $rrdnew);
$rrdxml = dump_xml_config_raw($rrdxmlarray, "rrd");
file_put_contents("{$g['tmp_path']}/{$xmldumpnew}", $rrdxml);
- exec("$rrdtool restore -f {$g['tmp_path']}/{$xmldumpnew} {$rrddbpath}/{$database}");
+ mwexec("$rrdtool restore -f {$g['tmp_path']}/{$xmldumpnew} {$rrddbpath}/{$database} 2>&1");
}
enable_rrd_graphing();
$config['version'] = "5.5";
OpenPOWER on IntegriCloud