Installing fcron

Fcron is part of the basic system package, configured as follows.

[ebuild   R   ] sys-process/fcron-3.0.6-r1  USE="-debug pam (-selinux)" LINGUAS="-fr" 0 kB

Configure fcron

The fcron package stores configurations in /etc/fcron.

The file /etc/fcron/fcrontab is the "system crontab" used by fcron, should not be edited.

The file /etc/fcron/fcron.conf is the main configuration. It contains directory locations and allows for setting of the editor, shell and mail commands.

Creating Cron Jobs

Jobs are super easy to create, simply execute fcrontab and start editing. Below is a sample.

root@host # fcrontab -l
# set some options

# my system crontab stuffs are run manually here
@ 1h /bin/run-parts /etc/cron.hourly
@ 1d /bin/run-parts /etc/cron.daily
@ 1w /bin/run-parts /etc/cron.weekly
@ 1m /bin/run-parts /etc/cron.monthly

# run every minute, no mail
* * * * * /root/

# run backup 3:03am, low priority
3 3 * * * /root/

The Spool

The spool directory is kept in /var/spool/fcron where exist files in binary and original (*.orig) format. These files should not be edited directly. Take special note of the systab files, those are used by fcron as the "system" crontabs.

See Also