Bug 474013 - logrotate documentation does not discuss script arguments
Summary: logrotate documentation does not discuss script arguments
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: logrotate
Version: 5.2
Hardware: i686
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 602643 604981
TreeView+ depends on / blocked
 
Reported: 2008-12-01 19:25 UTC by Michael McEniry
Modified: 2013-04-15 09:00 UTC (History)
4 users (show)

Fixed In Version: logrotate-3.7.4-12
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 602643 604981 (view as bug list)
Environment:
Last Closed: 2011-05-18 14:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0816 0 normal SHIPPED_LIVE logrotate bug fix update 2011-05-18 14:57:14 UTC

Description Michael McEniry 2008-12-01 19:25:19 UTC
Description of problem:
The documentation for logrotate does not discuss how it provides arguments to prerotate/postrotate scripts.

Version-Release number of selected component (if applicable):
3.7.4-9


The man page for logrotate does not mention arguments passed to the prerotate and postrotate scripts. However, bugs 241766 and 445554 indicate that logrotate passes as arguments to the script the matching log files that (are about to be / have just been) rotated.

What is the official behavior? If multiple log files are matched in a block, then how does logrotate pass those as arguments? Is the behavior altered by wildcards versus explicit names? Is the behavior altered by sharedscripts versus nosharedscripts?

Comment 1 David Tonhofer 2010-04-24 16:00:22 UTC
Seconding this bug. The man page should actually *also* say that a bash script is actually accepted between the "prerotate/postrotate" and "endscript" tags (Or is it a sh script? how about on a Debian system? Can another shell be chosen?) It is all very experimentalist.

Still open for logrotate-3.7.4-9

Comment 4 RHEL Program Management 2011-01-11 20:39:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2011-01-11 23:00:41 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 10 errata-xmlrpc 2011-05-18 14:57:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0816.html


Note You need to log in before you can comment on or make changes to this bug.