- Server operating system version
- Ubuntu 20.04.5 LTS
- Plesk version and microupdate number
- 18.0.49 Update #2
I have a strange issue with a custom PHP-FPM handler I added. Mostly, it's working perfectly, except for the issue below:
When I switch a domain's PHP handler from my custom handler to another one, my custom handler's systemd service is not being reloaded. As a result, the service does not notice that the pool config has been removed from the poold and keeps using the .sock file in /var/www/vhosts/system/<domain>
That leads to the new handler's service complaining about the php-fpm.sock being in use:
Now the interesting thing is: When switching a domain from a pre-existing handler (for exampe plesk-php81-fpm) to my custom handler, both handlers' services are reloaded. So plesk-php81-fpm notices the now removed pool config, releases the .sock file and so my handler's service can open it.
Can anyone give me a hint on what might be the issue here?
When I switch a domain's PHP handler from my custom handler to another one, my custom handler's systemd service is not being reloaded. As a result, the service does not notice that the pool config has been removed from the poold and keeps using the .sock file in /var/www/vhosts/system/<domain>
That leads to the new handler's service complaining about the php-fpm.sock being in use:
Code:
ERROR: Another FPM instance seems to already listen on /var/www/vhosts/system/<domain>/php-fpm.sock
Now the interesting thing is: When switching a domain from a pre-existing handler (for exampe plesk-php81-fpm) to my custom handler, both handlers' services are reloaded. So plesk-php81-fpm notices the now removed pool config, releases the .sock file and so my handler's service can open it.
Can anyone give me a hint on what might be the issue here?