Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106391

Summary: net-misc/chrony ebuild should install logrotate config file
Product: Gentoo Linux Reporter: Georg Sauthoff <g_sauthoff>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: chrony logrotate config file

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...