aboutsummaryrefslogtreecommitdiffstats
path: root/main/chrony/chrony.logrotate
blob: 1b7b589a9f33237bcb1f26c59db61a6d34715817 (plain)
1
2
3
4
5
6
7
8
9
10
11
/var/log/chrony/*.log
	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
}