Ubuntu – What’s the purpose of cron.daily folder in Ubuntu distro

cronUbuntu

I have a cron job that I put in cron.daily folder on my UBuntu server. I assumed that this would run daily by default, but found that it was actually not running when I checked /var/log/syslog. Did I make a wrong assumption? Do I need to configure the script with crontab -e.

Best Answer

By the run-parts used by ubuntu and debian cron:

  • File shouldn't have an extension.
  • File should be chmod 755.

And just to be sure:

  • /etc/crontab should have a line for launch the cron.daily scripts
  • cron should be running in the process table.
Related Topic