MXS-2907: Fix logrotate script

The SIGUSR1 isn't sent if the PID file is not found as that means MaxScale
is not running.
This commit is contained in:
Markus Mäkelä
2020-03-03 08:43:14 +02:00
parent ee8e43f26b
commit 61fc3d8a42

View File

@ -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
}