sentora-core
sentora-core copied to clipboard
Crontab redirect output to /dev/null
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.
Would be even better if it was an option that you could set.
What option?? first we fix it then we think about adding features.
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
/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.
This is fixed with #237