summaryrefslogblamecommitdiff
path: root/user/chrony/chrony.logrotate
blob: 4461a3063d2b70b782f01e57f1562cb47eae9cea (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                    
/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
}