Re: What should postrm purge actually do?
Frank Lichtenheld <firstname.lastname@example.org> writes:
> On Wed, Jun 04, 2008 at 02:20:08PM +0200, Goswin von Brederlow wrote:
>> Lars Wirzenius <email@example.com> writes:
>> > ke, 2008-06-04 kello 13:38 +0200, Jeremiah C. Foster kirjoitti:
>> >> Log files should be out of bounds, even for --purge.
>> > Doing that would mean log files never get cleaned up, unless the
>> > sysadmin realizes that they need to it manually. That's not a good
>> > situation, either.
>> When for example logrotate is used maybe that could keep rotating the
>> file(s) till it is gone.
>> So on purge the logfiles remains and then one disapears every
>> day. Logfiles would be kept as long as with the software
>> installed. You just don't get new ones.
> How will it know that these logfiles are there? The config file for them
> is gone during the purge...
That would be the part to teach logrotate. One way would be to tell
logrotate that the config is to be removed when it has no more files
and leave it on purge. Logrotate should then rotate as long as there
are files and then delete the config last.
> People should just use remove if they care about their log files.