Commit 398ef4a2 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

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

(cherry picked from commit 1678cc93)
parent 2104ae59
...@@ -1645,9 +1645,8 @@ function system_cron_configure($verbose = false) ...@@ -1645,9 +1645,8 @@ function system_cron_configure($verbose = false)
$crontab_contents .= "{$item['mday']}\t"; $crontab_contents .= "{$item['mday']}\t";
$crontab_contents .= "{$item['month']}\t"; $crontab_contents .= "{$item['month']}\t";
$crontab_contents .= "{$item['wday']}\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); file_put_contents('/var/cron/tabs/root', $crontab_contents);
killbypid('/var/run/cron.pid', 'HUP'); 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