Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661362 - net-misc/ntpsec logrotate config processes incorrect log file
Summary: net-misc/ntpsec logrotate config processes incorrect log file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords: PATCH
Depends on: 665188
Blocks:
  Show dependency tree
 
Reported: 2018-07-17 02:52 UTC by BT
Modified: 2018-09-05 15:05 UTC (History)
3 users (show)

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


Attachments
patch for log rotation (logrotate.patch,434 bytes, patch)
2018-07-17 19:25 UTC, James Browning
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BT 2018-07-17 02:52:46 UTC
net-misc/ntpsec installs the upstream provided logrotate config file 'logrotate-config.ntpd'. The logrotate config processes '/var/log/ntp/ntpd.log', but the default ntpsec log file is '/var/log/ntpd.log'.

Please change the logrotate config to process the correct file so that log rotation works for a default installation.

Also, the logrotate config has an excessively large rotate directive (rotate 9999). A value of 3 is a good default when rotating monthly.
Comment 1 James Browning 2018-07-17 19:25:23 UTC
Created attachment 539910 [details, diff]
patch for log rotation

changes the lof rotated to the one that is actually there and reduces the overly large number of backups to a mere six.
Comment 2 James Browning 2018-08-04 22:03:33 UTC
addressed upstream in https://gitlab.com/NTPsec/ntpsec/merge_requests/717
will be fixed in the next release.
Comment 3 James Browning 2018-08-29 13:03:51 UTC
There is a new release 1.1.2 out today; it addresses the issue.
Comment 4 Anthony Basile gentoo-dev 2018-09-05 01:52:23 UTC
(In reply to James Browning from comment #3)
> There is a new release 1.1.2 out today; it addresses the issue.

added.
Comment 5 BT 2018-09-05 02:47:06 UTC
Installed net-misc/ntpsec-1.1.2. I can confirm that the logrotate file has been fixed.