FS#37038 - Stopping php-fpm through systemd takes 3 minutes

Attached to Project: Arch Linux
Opened by Tomasz Jędrzejewski (Zyx) - Tuesday, 24 September 2013, 07:52 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 24 September 2013, 13:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I've noticed that stopping php-fpm service through systemd can take almost three minutes. Systemd does not notice that the process is already gone and keeps trying stopping it until it gives up with 'failed' status.

Log from the terminal:

[root@myhost | 09:46 | system]$ systemctl start php-fpm.service
[root@myhost | 09:46 | system]$ systemctl | grep php-fpm
php-fpm.service loaded active running The PHP FastCGI Process Manager
[root@myhost | 09:46 | system]$ cat /run/php-fpm/php-fpm.pid
3358[root@myhost | 09:46 | system]$ ps -ef | grep 3358
root 3358 1 0 09:46 ? 00:00:00 php-fpm: master process (/etc/php/php-fpm.conf)
http 3359 3358 0 09:46 ? 00:00:00 php-fpm: pool www
http 3360 3358 0 09:46 ? 00:00:00 php-fpm: pool www
root 3372 2851 0 09:46 pts/1 00:00:00 grep 3358
[root@myhost | 09:46 | system]$ systemctl stop php-fpm.service
^C
[root@myhost | 09:47 | system]$ ps -ef | grep 3358
root 3381 2851 0 09:47 pts/1 00:00:00 grep 3358
[root@myhost | 09:47 | system]$ cat /run/php-fpm/php-fpm.pid
cat: /run/php-fpm/php-fpm.pid: No such file or directory
[root@myhost | 09:47 | system]$ systemctl | grep php-fpm
php-fpm.service loaded deactivating stop-sigterm stop The PHP FastCGI Process Manager
[root@myhost | 09:48 | system]$ systemctl | grep php-fpm
php-fpm.service loaded deactivating stop-sigkill stop The PHP FastCGI Process Manager
[root@myhost | 09:49 | system]$ systemctl | grep php-fpm
php-fpm.service loaded failed failed The PHP FastCGI Process Manager

Package versions:
- php-fpm 5.5.4-1
- systemd 207-1

This is a fresh installation of the system that has been made 2 days ago.
This task depends upon

Closed by  Dave Reisner (falconindy)
Tuesday, 24 September 2013, 13:39 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#37007 
Comment by patrick (potomac) - Tuesday, 24 September 2013, 13:37 GMT
you wrote "systemd 207-1" but the last version of systemd package is 207-5

Loading...