[Nottingham] logrotate issues
Mike Cardwell
nlug at lists.grepular.com
Fri Dec 11 12:09:40 UTC 2009
Mike Cardwell wrote:
>>> What on Earth is telling my system to rotate mail.log on a daily basis
>>> and to only keep the last weeks worth of logs?
>> As root:
>>
>> logrotate -d
>>
>> That will run through the config (which probably calls a bunch of
>> includes in /etc/logrotate.d) and show you what it *would* do, without
>> doing it. Then you can see where the mail log gets rotated.
>
> The plot thickens. It doesn't even mention mail.log when I do that. Nor
> the other general system logs like syslog/messages etc...
Damnit. They're not being rotated by logrotate, they're being rotated by
sysklogd. Looks like I need to fiddle with /etc/cron.daily/sysklogd
--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/
Technical Blog: https://secure.grepular.com/blog/
More information about the Nottingham
mailing list