Logrotate should take care of that.
The snippet below has been in redhats /etc/logrotate.conf for ages, add
it to yours if you don't have it. Are you sure logrotate is run? Usually
"/usr/sbin/logrotate /etc/logrotate.conf" is run as a daily cron job.
Reinier.
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 666 root root
rotate 1
}
/var/log/lastlog {
monthly
create 666 root root
rotate 1
nocompress
}
_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/axp-list
This archive was generated by hypermail version 2a22 on Sat Mar 3 12:54:54 2001 PST
Send any problems or questions about this archive to webmaster@alphalinux.org.