Re: [RFC] How should rsyslog handle .0 logfiles from sysklogd
Michael Biebl wrote:
> 2.) Try to log rotate the .0 files for the default Debian log files in
> postinst. I feel a bit uneasy about this approach, for several reasons:
> - It adds fairly reasonable complexity to the maintainer scripts, if you
> want to consider all corner cases.
> E.g. if you switch from syslog-ng to rsyslog, it is very likely that you
> have old .0 files lying around (from a sysklogd->syslog-ng switch), so
> syslog.1 would be older than syslog.2 which would be very confusing.
Well, you could rely on ctime for this, even though this would make
postinst even more complex; any other reasons?
> 3.) Delete the .0 files in postinst. Is this covered by the policy?
I think that deleting logfiles without warning is totally unacceptable.
Regards,
Faidon
Reply to: