diff options
Diffstat (limited to 'net-misc/chrony/files/chrony.logrotate')
-rw-r--r-- | net-misc/chrony/files/chrony.logrotate | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net-misc/chrony/files/chrony.logrotate b/net-misc/chrony/files/chrony.logrotate new file mode 100644 index 000000000000..a88537d74b61 --- /dev/null +++ b/net-misc/chrony/files/chrony.logrotate @@ -0,0 +1,10 @@ +/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 +} |