]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
examples: add logrotate configuration
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 4 Sep 2014 15:27:43 +0000 (17:27 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 4 Sep 2014 15:28:32 +0000 (17:28 +0200)
examples/chrony.logrotate [new file with mode: 0644]

diff --git a/examples/chrony.logrotate b/examples/chrony.logrotate
new file mode 100644 (file)
index 0000000..e0cd83c
--- /dev/null
@@ -0,0 +1,8 @@
+/var/log/chrony/*.log {
+    missingok
+    nocreate
+    sharedscripts
+    postrotate
+        /usr/bin/chronyc -a cyclelogs > /dev/null 2>&1 || true
+    endscript
+}