thias / puppet-php

Puppet module to manage PHP
Other
49 stars 67 forks source link

Make sure the pid file directory is created. #42

Closed esbjerg closed 9 years ago

esbjerg commented 10 years ago

Otherwise the service cannot start with systemd.

Tested on CentOS-7 where the issue was discovered.

thias commented 9 years ago

I have never encountered this issue, even though I have been using php-fpm on RHEL7 since it came out. The current updated packages I'm using definitely don't have this problem, and having puppet create this directory would be wrong anyway since /run is tmpfs (to where /var/run is a symlink to), meaning that puppet would need to re-create the directory after each reboot, with php-fpm failing to start anyway.

Here's what you can check :

[root@el7 ~]# cat /usr/lib/tmpfiles.d/php-fpm.conf
d /run/php-fpm 755 root root
[root@el7 ~]# rpm -qf /usr/lib/tmpfiles.d/php-fpm.conf
php-fpm-5.5.22-1.el7.x86_64