logrotate
Hi debs
On the subject of logrotate, how do you guys put that to use? For me,
root has a crontab entry for this as follows:
# At midday: logrotate
0 12 * * * /usr/sbin/logrotate -v /etc/logrotate.conf
My /etc/logrotate.conf looks as follows: (shortened - sorry for it being
so long)
-- /etc/logrotate.conf --
weekly
rotate 4
errors root
create
compress
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
# system-specific logs may be configured here
/var/log/messages {
missingok
monthly
create 0664 root utmp
rotate 1
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
/var/log/syslog {
missingok
monthly
create 0664 root utmp
rotate 1
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
/var/log/exim/mainlog {
missingok
monthly
create 0664 root utmp
rotate 1
}
-- /etc/logrotate.conf --
Is that the way it's supposed to be done? :)
TIA
--
S. Burgener
Powered by Debian GNU/Linux 2.2
Reply to: