From e732b8bc4e70705f6ee1cd415929854258e60068 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 18 Aug 2009 20:11:05 +0000 Subject: main/chrony: add logrotate script fixes #82 --- main/chrony/chrony.logrotate | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 main/chrony/chrony.logrotate (limited to 'main/chrony/chrony.logrotate') diff --git a/main/chrony/chrony.logrotate b/main/chrony/chrony.logrotate new file mode 100644 index 000000000..1b7b589a9 --- /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 +} + -- cgit v1.2.3