Cron daemons allow you to configure certain tasks to be run at specific times. Installing a cron daemon is a good idea because some packages may assume that you have a cron daemon installed and create jobs to update their databases with a cron daemon. There are several different loggers available to Funtoo users:

Cron daemons allow you to configure certain tasks to be run at specific times. Installing a cron daemon is a good idea because some packages may assume that you have a cron daemon installed and create jobs to update their databases with a cron daemon. There are several different loggers available to Funtoo users:

−

* '''{{Package|sys-process/fcron}}'''

+

* '''{{Package|sys-process/fcron}}''' - "Fcron is a periodical command scheduler which aims at replacing Vixie Cron, so it implements most of its functionalities." ([http://fcron.free.fr/ Fcron homepage])

−

* '''{{Package|sys-process/cronie}}'''

+

* '''{{Package|sys-process/cronie}}''' - "Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools. It is based on the original cron and has security and configuration enhancements like the ability to use pam and SELinux." ([https://fedorahosted.org/cronie/ Cronie homepage])

* '''{{Package|sys-process/vixie-cron}}'''

* '''{{Package|sys-process/vixie-cron}}'''

* '''{{Package|sys-process/incron}}'''

* '''{{Package|sys-process/incron}}'''

Latest revision as of 00:04, January 11, 2014

Introduction

Cron daemons allow you to configure certain tasks to be run at specific times. Installing a cron daemon is a good idea because some packages may assume that you have a cron daemon installed and create jobs to update their databases with a cron daemon. There are several different loggers available to Funtoo users:

sys-process/fcron (package not on wiki - please add) - "Fcron is a periodical command scheduler which aims at replacing Vixie Cron, so it implements most of its functionalities." (Fcron homepage)

sys-process/cronie (package not on wiki - please add) - "Cronie contains the standard UNIX daemon crond that runs specified programs at scheduled times and related tools. It is based on the original cron and has security and configuration enhancements like the ability to use pam and SELinux." (Cronie homepage)

System Cron Jobs

After the cron daemon has been emerged, you may see a message to run emerge --config to configure your cron daemon to process system cron jobs. System cron jobs are scripts that are installed by various packages into the following directories:

/etc/cron.hourly

/etc/cron.daily

/etc/cron.weekly

/etc/cron.monthly

For example, you should find a /etc/cron.daily/man-db script that is installed by the sys-apps/man-db (package not on wiki - please add) ebuild. This system cron job's purpose is to update the man cache every day, and it will run only if you enable your cron daemon to manage system cron jobs.

You may choose to enable your cron daemon so that it runs system cron jobs, or choose not to. Enabling a cron daemon to run system cron jobs will result in a bit more disk and CPU activity on your system, but should ensure that the system runs more optimally most of the time (proper caching of man pages, etc.) It is recommended for most systems, but your system will still function without system cron jobs active.

If you would like to have your system run system cron jobs, use emerge --config as specified in the emerge output:

# emerge --config sys-process/fcron
Configuring pkg...
* This is going to set up fcron to execute check_system_crontabs.
* In this configuration, you're no longer free to edit the systab
* at your leisure, as it'll be rewritten the moment the crontabs
* are modified.
Rebuilding fcron systab.2013-10-19 21:20:38
INFO installing file /tmp/fcrontab.84pova for user systab
Modifications will be taken into account right now.

Your cron daemon is now configured to automatically run system cron jobs.