Skip to content
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

Fix pidfile to match PIDFile in systemd service #209

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

scambra
Copy link
Contributor

@scambra scambra commented Feb 3, 2020

I had php fpm installed from packages.sury.org/php repository on Debian 10. When I upgraded to latest version (7.4.2-5 and 5.6.40-20) fpm failed to restart.

PIDFile in systemd service for sury packages have always been:
PIDFile=/run/php/phpVERSION-fpm.pid

Starting service worked for previous versions, but latest versions have these lines in systemd services, which make start to fail if pid file is not found:
ExecStartPost=-update-alternatives --quiet --install /run/php/php-fpm.sock php-fpm.sock /run/php/phpVERSION-fpm.sock VERSION
ExecStopPost=-update-alternatives --quiet --remove php-fpm.sock /run/php/phpVERSION-fpm.sock

@scambra scambra changed the title Patch 2 Fix pidfile to match PIDFile in systemd service Mar 20, 2020
@scambra
Copy link
Contributor Author

scambra commented Mar 20, 2020

commit 393d69e changed one path, but I think it applies only for Ubuntu, not for Debian. And I think fpm/config.sls needs to be changed too when multiple versions are installed.

scambra added 2 commits March 20, 2020 15:58
Systemd services from packages.sury.org/php repository have PIDFile in /run/php directory, and latest package 7.4.2-5 has ExecStartPost which fails with timeout if PIDFile is not found.
For Debian with latest packages from packages.sury.org/php repository, when only one version is installed
@myii
Copy link
Member

myii commented Jun 16, 2020

Sorry for the delay, @scambra. Could you have a look at this, @sticky-note?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants