sentora-core icon indicating copy to clipboard operation
sentora-core copied to clipboard

Crontab redirect output to /dev/null

Open MBlagui opened this issue 10 years ago • 5 comments

Any new cron setup will send emails to apache user... output should be redirected to /dev/null

/dev/null 2>&1

So we should append the above to each cron.

MBlagui avatar Feb 17 '15 09:02 MBlagui

Would be even better if it was an option that you could set.

uberswe avatar Feb 17 '15 23:02 uberswe

What option?? first we fix it then we think about adding features.

MBlagui avatar Feb 18 '15 10:02 MBlagui

Well your fix may be seen as a problem to some but a good feature to others, perhaps some like having it on so they can debug problems by checking the cron emails. If the emails you can empty the mailbox every x days just like you might clear logs automatically. Just my 2 cents

uberswe avatar Feb 18 '15 10:02 uberswe

/dev/null is a fix needed otherwise the postfix queue will be flooded with a lot of emails for root/apache user! If you want output for debug execute manually your cron & that will do it fine! We are fixing an issue here not adding feature that's the priority.

MBlagui avatar Feb 18 '15 10:02 MBlagui

This is fixed with #237

xabixab avatar Apr 17 '16 12:04 xabixab