The logrotate script that ships with acct overrides the following variables which a user may want to set globally in /etc/logrotate.conf: compress -- Annoying. `zgrep`, for example, does not support `-r`. rotate 31 -- Dangerous. This dictates when logs are deleted. daily -- Same as above. A few more points: * Global configuration is important for predictability and scripting. * If size on the filesystem is a concern, the user can: * set e-mail warnings * set filesize-based rotation limits * enable compression only for logs which he or she expects to grow * Logs are a security measure. Reproducible: Always
Thanks for the report. I am closing this as invalid because while I share some arguments it is impossible to ship a default logrotate configuration for sys-process/acct which fits on all systems: We set "daily" per default because the amount of data logged by this service is usually high. Due to daily rotation we also need to adjust "rotate" because otherwise logrotate's current default of "rotate 4" wouldn't make sense. It is not a CANTFIX because this is the way how we do that in Gentoo: I.e. we try to ship packages with sane default for most users. If these defaults don't match your needs you are supposed to overwrite our configuration. If you think our defaults could be improved please share. However, like said, the current values for sys-process/acct have their reasons. If you are going to suggest a change please explain in detail and keep in mind that this must be suitable for most setups.
Thomas, thank you for the detailed answer. I understand that acct is different than most utilities in this regard, so I see the reasoning behind the defaults now.