From 61fc3d8a429dfa829cdcdbbd57625a7febca0460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 3 Mar 2020 08:43:14 +0200 Subject: [PATCH] MXS-2907: Fix logrotate script The SIGUSR1 isn't sent if the PID file is not found as that means MaxScale is not running. --- etc/logrotate.d/maxscale_logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/logrotate.d/maxscale_logrotate b/etc/logrotate.d/maxscale_logrotate index 360b9006d..253885399 100644 --- a/etc/logrotate.d/maxscale_logrotate +++ b/etc/logrotate.d/maxscale_logrotate @@ -5,7 +5,7 @@ missingok nocompress sharedscripts postrotate -kill -USR1 `cat /var/run/maxscale/maxscale.pid` +test -r /var/run/maxscale/maxscale.pid && kill -USR1 $(cat /var/run/maxscale/maxscale.pid) endscript }