I am moving all my server's log rotation tasks for logrotate. The server has several PHP-FPM pools, each of them configured with a separated error_log
directive.
The logrotate recipe for the logs is fairly simple:
/var/log/php/*.log
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
dateext
sharedscripts
postrotate
# Need for signaling the php-fpm process?
endscript
}
Should I send some signal to php-fpm pools to catch the new handles for the error_log files (in postrotate
script)? If yes, which signal?