aboutsummaryrefslogtreecommitdiffstats
path: root/main/chrony/chrony.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'main/chrony/chrony.logrotate')
-rw-r--r--main/chrony/chrony.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/chrony/chrony.logrotate b/main/chrony/chrony.logrotate
new file mode 100644
index 00000000000..1b7b589a9f3
--- /dev/null
+++ b/main/chrony/chrony.logrotate
@@ -0,0 +1,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
+}
+