Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408543 - sys-process/acct-6.5.5-r2: logrotate file contains invalid postrotate command
Summary: sys-process/acct-6.5.5-r2: logrotate file contains invalid postrotate command
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-17 02:48 UTC by Andrew Savchenko
Modified: 2012-03-17 04:47 UTC (History)
1 user (show)

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


Attachments
acct.initd.patch (acct.initd.patch,628 bytes, patch)
2012-03-17 03:01 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2012-03-17 02:48:07 UTC
Hello,

In acct-acct-6.5.5-r2 /etc/logrotate.d/acct contains the following:
postrotate
                /etc/init.d/acct reload > /dev/null 2>&1

Though there is not reload action in the init script and accounting will never be written to a new file.

Possible solutions are:
1) replace reload by restart, but this may miss some events from accounting;

2) better solution will be just run
accton "${ACCT_LOG}"
This will do the job, but runscript will not allow to use start twice, so reload action must be implemented.
Comment 1 Andrew Savchenko gentoo-dev 2012-03-17 03:01:41 UTC
Created attachment 305665 [details, diff]
acct.initd.patch

Add reload action to the init script.
Comment 2 Andrew Savchenko gentoo-dev 2012-03-17 04:47:26 UTC
Ooops, this was fixed already, but without version bump, that's why I missed this fix.