Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73843 - logrotate man page is not correct
Summary: logrotate man page is not correct
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-08 14:44 UTC by edoceo
Modified: 2004-12-10 12:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description edoceo 2004-12-08 14:44:08 UTC
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
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-12-08 14:47:31 UTC
attach a patch for the man page. ;-)
Comment 2 Sergey Kuleshov (RETIRED) gentoo-dev 2004-12-09 09:32:50 UTC
One line of sed command fixed that :)
Comment 3 edoceo 2004-12-10 12:12:37 UTC
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.