From 2551bc205cb1a7cedf2f643b70865590c7c20c75 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 5 Feb 2019 23:41:07 +0100 Subject: [PATCH] add copytruncate to logrotate config to keep an empty logfile --- templates/etc/logrotate.d/config.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/etc/logrotate.d/config.j2 b/templates/etc/logrotate.d/config.j2 index 5e0ede0..4ca5f5b 100644 --- a/templates/etc/logrotate.d/config.j2 +++ b/templates/etc/logrotate.d/config.j2 @@ -4,6 +4,7 @@ {% for option in item.options %} {{ option }} {% endfor %} + copytruncate postrotate /usr/bin/pkill -HUP rsyslogd endscript