Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created September 26, 2019 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BtbN/71ac2e0e3864b204c1941383d65f6339 to your computer and use it in GitHub Desktop.
Save BtbN/71ac2e0e3864b204c1941383d65f6339 to your computer and use it in GitHub Desktop.
/etc/cron.d/dailyjobs
# Global variables
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
*/10 * * * * root /usr/sbin/run-crons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment