-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undesired service restart due to missing /var/run/php-fpm dir #501
Comments
Hi @simondeziel, thanks for reporting this. Can you provide the code as an acceptance test (or even a patch for this?)? We have some examples for acceptance tests here: https://github.com/voxpupuli/puppet-php/tree/master/spec/acceptance |
This was fixed by commit b9f81d7 so closing. Thanks! |
I'm experiencing this exact same issue (again).
After a reboot the
|
This was actually not fixed as Solution: Use the value of Note that Also (at least on Ubuntu 18.04), the packaged systemd service does: ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73
ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 So this should be handled by puppet for additional pools (when using sockets). |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Create a FPM pool that matches Ubuntu default config as much as possible:
What are you seeing
The unneeded directory /var/run/php-fpm gets created during the first puppet agent run after boot and triggers an undesired service restart:
What behaviour did you expect instead
The useless directory /var/run/php-fpm shouldn't be created and no service restart should happen due to it.
The text was updated successfully, but these errors were encountered: