-
Notifications
You must be signed in to change notification settings - Fork 6
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
phpx.x-fpm services fail to reload #23
Comments
Hello should be solved with https://github.com/AlternC/alternc-php-fpm/blob/issue-18/src/usr/lib/alternc/php7-fpm#L76 Is it enough ? |
It doesn't work because the unit exists even if the service is dead. The script checks for
So here, in a case where php5.6-fpm was not running, adding a sub-domain on 5.6 fails (silently from the user side, since it's from the cron). And the page will show a 503. |
Hello Ok we must improve this behavior and do a check between sysV and systemd. I'll do a next try to manage this two use case. |
If the services are not running, /usr/lib/alternc/php7-fpm will fail with, for instance:
An easy way is to add an OR in the reload call to ensure the service is started if not running:
passthru("/etc/init.d/php".$service."-fpm reload || /etc/init.d/php".$service."-fpm start");
Which works properly:
The text was updated successfully, but these errors were encountered: