Skip to main content

Disable successful Cron Daemon notifications?

Comments

5 comments

  • GOT
    run crontab -e and at the top of that file, insert MAILTO="" That will disable all email notifications for the root crons.
    0
  • N Webber
    But I won't get a notification then if it fails? I only want an email notification if it fails (some error occurs), not if it's successful and no error occurs.
    0
  • Infopro
    According to the docs, there is a separate alert for Update Failures in Contact Manager: Contact Manager - Version 74 Documentation - cPanel Documentation [QUOTE] cPanel Update Failures | The cPanel & WHM system fails to update.|upcp/UpdateNowFailed.*.tmpl
    Even if you disable cPanel updates themselves, upcp --cron will run and spit out the email.
    0
  • N Webber
    Ok, so just to be clear, if I change my cronjob from: 28 0 * * * /usr/local/cpanel/scripts/upcp --cron to: 28 0 * * * /usr/local/cpanel/scripts/upcp --cron > /dev/null 2>&1 That will disable the Cron Daemon emails, but if the script fails the Contact Manager will send me another email notifying me?
    0
  • cPanelLauren
    Hello @N Webber That is correct! The contact manager is separate from the cron daemon.
    0

Please sign in to leave a comment.