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 }