From 03115e9cc8bf20eeb7009258d062d2b8bb55e97a Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Thu, 10 Jun 2010 02:24:56 +0000 Subject: Add USE=logrotate with a logrotate script contributed by Georg Sauthoff (bug #106391). (Portage version: 2.2_rc67/cvs/Linux i686) --- net-misc/chrony/files/chrony.logrotate | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 net-misc/chrony/files/chrony.logrotate (limited to 'net-misc/chrony/files') 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 +} -- cgit v1.2.3-65-gdbad