The Linux cron process automatically executes tasks at various times based on the contents of configuration files stored in user-specific subdirectories of the directory / var/spool/cron or in the system-wide configuration file /etc/crontab. It also runs processes defined in the directories /etc/cron.hourly, /etc/cron.daily, /etc/cron.weekly, and /etc/cron.montly on an hourly, daily, weekly, and monthly basis, respectively. These automatically scheduled and executed processes perform many essential cleanup and maintenance tasks on most Linux systems. For more information about cron and the format of its configuration files, check the online reference information by executing the commands man cron and man 5 crontab on your SUSE system.
In this section we take Apache as an example of a logrotate entry. Looking at what logrotate can do with an Apache logrotate entry will give you an idea of how powerful and helpful the utility can be. Listing 7-8 displays the Apache logrotate entry for access_log. (The Apache access_log contains information about who has accessed any files available via the HTTP server process.)
Was this article helpful?