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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user