MaxScale/etc/logrotate.d/maxscale_logrotate
Markus Mäkelä 61fc3d8a42
MXS-2907: Fix logrotate script
The SIGUSR1 isn't sent if the PID file is not found as that means MaxScale
is not running.
2020-03-04 09:07:50 +02:00

12 lines
200 B
Plaintext

/var/log/maxscale/maxscale.log {
monthly
rotate 5
missingok
nocompress
sharedscripts
postrotate
test -r /var/run/maxscale/maxscale.pid && kill -USR1 $(cat /var/run/maxscale/maxscale.pid)
endscript
}