
execution is controlled by
/usr/lib/cron/run-crons
.
/usr/lib/cron/
run-crons
is run every 15 minutes from the main table (
/etc/crontab
). This
guarantees that processes that may have been neglected can be run at the proper time.
To run the
hourly
,
daily
, or other periodic maintenance scripts at custom times,
remove the time stamp files regularly using
/etc/crontab
entries (see
Example 21.2,
“/etc/crontab: Remove Time Stamp Files”
(page 409), which removes the
hourly
one
before every full hour, the
daily
one once a day at 2:14 a.m., etc.).
Example 21.2
/etc/crontab: Remove Time Stamp Files
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
14 2 * * * root rm -f /var/spool/cron/lastrun/cron.daily
29 2 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
44 2 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
The daily system maintenance jobs have been distributed to various scripts for reasons
of clarity. They are contained in the package
aaa_base
.
/etc/cron.daily
con-
tains, for example, the components
suse.de-backup-rpmdb
,
suse
.de-clean-tmp
, or
suse.de-cron-local
.
21.1.3 Log Files: Package logrotate
There are a number of system services (daemons) that, along with the kernel itself,
regularly record the system status and specific events to log files. This way, the admin-
istrator can regularly check the status of the system at a certain point in time, recognize
errors or faulty functions, and troubleshoot them with pinpoint precision. These log
files are normally stored in
/var/log
as specified by FHS and grow on a daily basis.
The
logrotate
package helps control the growth of these files.
Configure logrotate with the file
/etc/logrotate.conf
. In particular, the
include
specification primarily configures the additional files to read. Programs that
produce log files install individual configuration files in
/etc/logrotate.d
. For
example, such files ship with the packages, e.g.
apache2
(
/etc/logrotate.d/
apache2
) and
syslogd
(
/etc/logrotate.d/syslog
).
Special System Features
409
Summary of Contents for LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Page 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Page 14: ......
Page 19: ...Part I Deployment...
Page 20: ......
Page 60: ......
Page 128: ......
Page 243: ...Part II Administration...
Page 244: ......
Page 274: ......
Page 312: ......
Page 348: ......
Page 380: ......
Page 381: ...Part III System...
Page 382: ......
Page 438: ......
Page 452: ......
Page 478: ......
Page 486: ......
Page 498: ......
Page 512: ......
Page 558: ......
Page 559: ...Part IV Services...
Page 560: ......
Page 652: ......
Page 670: ......
Page 742: ......
Page 754: ......
Page 796: ......
Page 817: ...Part V Security...
Page 818: ......
Page 858: ......
Page 886: ......
Page 910: ......
Page 911: ...Part VI Troubleshooting...
Page 912: ......
Page 924: ......