As I understand it, you can either
i) put scripts in /etc/cron.{time interval} and they will be executed as specified in root's crontab
ii) add items to root's crontab, or per user where root status isn't needed
iii) put crontab files in the directory /etc/cron.d:
According to the crond man page:
Code: Select all
The directory of per-user crontabs is re-parsed once every hour in any case. Any crontabs in the system directory (usually /etc/cron.d) are parsed at the same time. This directory can be used by packaging systems. When you install a package foo, it might write its own foo-specific crontab to /etc/cron.d/foo.
I assume these files can be called anything you like. However, it doesn't seem to be working for me:
http://www.salixos.org/forum/viewtopic.php?f=12&t=4778
Some information I found on crontabs suggested that a blank line or two (or not) at the end of the file might make a difference, but not in this case nor for any of my tests (such as a crontab entry to touch a file).