summaryrefslogtreecommitdiff
blob: b788874c52c6a030dc70f5f7eb18e7235ee4c504 (plain)
1
2
3
4
5
6
7
8
9
10
11
/var/log/chrony/*.log {
	missingok
	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
}