After a new install of gentoo with fcron-3 :
- there is no /etc/crontab file ; and is it wanted (by default).
- also, system crontab must not be setup in root crontab’s, but in systab crontab, using the check_system_crontabs tool.
- finally, note that by default, /etc/cron.* is not handled by fcron.
So, if you wanna to add support for /etc/cron.* you can :
- Add this line in a new /etc/crontab (or in an existing if there is no equivalent lines already) :
%hourly * /bin/run-parts /etc/cron.hourly %daily * * /bin/run-parts /etc/cron.daily %weekly * * /bin/run-parts /etc/cron.weekly %monthly * * * /bin/run-parts /etc/cron.monthly
- Last point do nothing, just a file is updated, not any crontab.
- Now you call the tool :
check_system_crontabs -v -i -f
- This command will create or update dynamically the crontab of the systab user (needed by fcron for system crontab, created by the gentoo ebuild)
- You can after check that the generated systab crontab is the concatenation of your /etc/crontab, any /etc/cron.d/ entry, and a call to the check_system_crontabs tool himself to update – if needed – the crontab – every ten minutes (in fact, for this laspoint, he use the content of /etc/fcron/fcrontab file) :
fcrontab -usystab -l