Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106391 - net-misc/chrony ebuild should install logrotate config file
Summary: net-misc/chrony ebuild should install logrotate config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-18 11:34 UTC by Georg Sauthoff
Modified: 2010-07-14 16:12 UTC (History)
0 users

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


Attachments
chrony logrotate config file (chrony,301 bytes, text/plain)
2005-09-18 11:35 UTC, Georg Sauthoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Sauthoff 2005-09-18 11:34:07 UTC
Hi,

the chrony ntp daemon logs some information to /var/log/chrony (statistics etc.).
By default they get never rotated.
I attached a trivial config file for /etc/logrotate.d/ which change this behaviour.

Regards
Georg Sauthoff

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Georg Sauthoff 2005-09-18 11:35:22 UTC
Created attachment 68755 [details]
chrony logrotate config file
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-18 12:01:53 UTC
Re-assign, maintainer is retired.
Comment 3 Georg Sauthoff 2005-09-19 10:53:47 UTC
Comment on attachment 68755 [details]
chrony logrotate config file

>/var/log/chrony/*.log {
		       ^ forgot to paste this one
>	sharedscripts
>	postrotate
>                PASSWORD=`awk '$1 ~ /^1$/ {print $2; exit}' /etc/chrony/chrony.keys`
>                cat << EOF | /usr/bin/chronyc | sed '/^200 OK$/d'
>                password $PASSWORD
>                cyclelogs
>                EOF
>        endscript
>}
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-10 02:25:18 UTC
Thanks. The change is in =net-misc/chrony-1.24-r2.
Comment 5 Tobias Klausmann (RETIRED) gentoo-dev 2010-06-25 09:46:25 UTC
The script is broken. It misses a { on the first line.
Comment 6 Tobias Klausmann (RETIRED) gentoo-dev 2010-06-25 09:50:56 UTC
...aaand fixed.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-14 16:12:53 UTC
So fixed...