Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 247 #273
i
i
i
i
i
i
i
i
10
Special Features of SUSE LINUX
Configuration
Configure logrotate with the file /etc/logrotate.conf. In particu-
lar, the include specification primarily configures the additional files
to read. SUSE LINUX ensures that individual packages install files in
/etc/logrotate.d (e.g., syslog or yast).
Example 10.2: Example for /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own lastlog or wtmp - we’ll rotate them here
#/var/log/wtmp {
# monthly
# create 0664 root utmp
# rotate 1
#}
# system-specific logs may be also be configured here.
logrotate is controlled through cron and is called daily by /etc/cron.
daily/logrotate.
Note
The create option reads all settings made by the administrator
in /etc/permissions*. Ensure that no conflicts arise from any
personal modifications.
Note
247SUSE LINUX Enterprise Server