I tried this on newbie a while ago and got no joy, my /var/log/messages and 
/var/log/syslog fill up and I have to delete the entries by hand (if I try 
logrotate -f /var/log/messages I get a terminal full of "error: 
/var/log/messages:58823 unknown option 'Dec' -- ignoring line
error: /var/log/messages:58823 unexpected text"
cron and anacron are installed (PC not on 24hrs) so any suggestions would be 
gratefully received.

If it helps  -
/etc/cron.d is an empty directory
/etc/cron.daily contains 0anacron, 
logrotate,makewhatis.cron,msec,rpm,tetex.cron (scripts) and tmpwatch (file)
/etc/cron.hourly only contains msec script
/etc/cron.monthly only contains 0anacron
/etc/cron.weekly contains 0anacron, makewhatis.cron, makewhatis-en.cron and 
slocate.cron scripts

/etc/logrotate.d contains cron, linuxconf,msec,rpm,sudo,syslog,urpmi,xdm - 
text files

/etc/logrotate.conf is below (blank lines deleted here for brevity)
# 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
}
/var/log/lastlog {
    monthly
    rotate 1
}
# system-specific logs may be configured here



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to