FS#38178 - [php-fpm] logrotate.d.php-fpm use inappropriate signal for reopening log files.
Attached to Project:
Arch Linux
Opened by PT. Ma. (BOYPT) - Wednesday, 18 December 2013, 03:04 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 01 May 2014, 06:50 GMT
Opened by PT. Ma. (BOYPT) - Wednesday, 18 December 2013, 03:04 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 01 May 2014, 06:50 GMT
|
Details
Description:
logrotate.d.php-fpm shiped with php-fpm, runs post-rotate command as: postrotate systemctl reload php-fpm.service || true according to php-fpm.service, reload runs: ExecReload=/bin/kill -USR2 $MAINPID And according to php-fpm manpages: SIGINT,SIGTERM immediate termination SIGQUIT graceful stop SIGUSR1 re-open log file SIGUSR2 graceful reload of all workers + reload of fpm conf/binary The signal used with postrotate shoud be SIGUSR1, instead of SIGUSR2. SIGUSR2 causes all the fpm process reset, including all the cache/connections. Additional info: * package version(s): php-fpm 5.5.7 |
This task depends upon
pkill -USR1 $(cat /run/php-fpm/php-fpm.pid) || true