The cron Daemon
The scheduler in FreeBSD, as in most UNIX-type systems, is called cron. FreeBSD's cron program was written by Paul Vixie, and it is the standard version used in most distributions of Linux and other similar systems. Like any standalone daemon, it runs all the time, and looks at its input files (called crontab files) each minute to see if they have changed or if they contain a task it needs to execute that minute. The cron process itself never needs to be restarted; it will automatically read in any changes when it wakes up every minute.
There is a global crontab file (/etc/crontab) and a directory (/var/cron/tabs), in which individual users can create their own crontab files. It can be tempting to add your own scheduled jobs to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access