Man page for logrotate says this: FILES /var/lib/logrotate/status Default state file. /etc/logrotate.conf Configuration options. But the compiled version of logrotate that comes with gentoo is to use /var/lib/logrotate.status Reproducible: Always Steps to Reproduce: 1. emerge logrotate 2. strings /usr/sbin/logrotate |grep status 3. Expected Results: I think the manual should be corrected, or the ebuild should be corrected
attach a patch for the man page. ;-)
One line of sed command fixed that :)
Just looked at the debian sources for logrotate, latest version. The source with the manual states /var/lib/logrotate/status, but the code looks like: linux-00 logrotate-3.7-r1 # grep '/var/lib' * config.h: #define STATEFILE "/var/lib/logrotate.status" logrotate.8:log files. The default state file is \fI/var/lib/logrotate/status\fR. logrotate.8:\fI/var/lib/logrotate/status\fR logrotate.spec:mkdir -p $RPM_BUILD_ROOT/var/lib logrotate.spec:touch $RPM_BUILD_ROOT/var/lib/logrotate.status logrotate.spec:%attr(0644, root, root) %verify(not size md5 mtime) %config(noreplace) /var/lib/logrotate.status So the man page patch was the way to go.