Commit 1678cc93 authored by Ad Schellevis's avatar Ad Schellevis

crond, forward stdout to null, closes https://github.com/opnsense/core/issues/1426

parent 9dd1dd8e
......@@ -1645,9 +1645,8 @@ function system_cron_configure($verbose = false)
$crontab_contents .= "{$item['mday']}\t";
$crontab_contents .= "{$item['month']}\t";
$crontab_contents .= "{$item['wday']}\t";
$crontab_contents .= "{$item['command']}\n";
$crontab_contents .= "({$item['command']}) > /dev/null\n";
}
file_put_contents('/var/cron/tabs/root', $crontab_contents);
killbypid('/var/run/cron.pid', 'HUP');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment