Bug 1419300
Summary: | not a bug: logrotate -d makes no changes to logs (and state file) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Todd Warner <taw> |
Component: | logrotate | Assignee: | Kamil Dudka <kdudka> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | jkaluza, kdudka, taw, will_darton |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-06 07:52:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Todd Warner
2017-02-05 01:58:49 UTC
(In reply to Todd Warner from comment #0) > In order to test logrotate configurations, you use the commandline and the > logrorate command directly, like this... > > [root@XXX test]# /usr/sbin/logrotate -dvf /etc/logrotate.d/test The above command works as expected but you forget to look at logrotate(8) man page to check meaning of the options you are using. If you want logrotate to make any changes to logs and/or state file, just do not use the -d option. This is clearly documented: -d, --debug Turns on debug mode and implies -v. In debug mode, no changes will be made to the logs or to the logrotate state file. To avoid further confusion (and creation of misleading bug reports), you should also check what the -f option does: -f, --force Tells logrotate to force the rotation, even if it doesn't think this is necessary. Sometimes this is useful after adding new entries to a logrotate config file, or if old log files have been removed by hand, as the new files will be created, and logging will continue correctly. |