Welcome! Log In Create A New Profile

Advanced

unix socket creation upon SIGUSR2

Posted by Ro Achterberg 
Ro Achterberg
unix socket creation upon SIGUSR2
December 17, 2012 11:10AM
php-fpm seems to be missing a feature that could be really useful in a
shared hosting environment like the one I'm currently setting up.

When dynamically creating pools for new domains, the corresponding unix
socket isn't being created after having issued a SIGUSR2. It seems that
currently it is impossible to gracefully create a communication socket
on-the-fly, which means that php-fpm would have to be stopped/restarted.
This isn't very handy, for obvious reasons.

Any insights into a graceful solution to this problem would be most
appreciated!
Dan Farrell
Re: unix socket creation upon SIGUSR2
December 19, 2012 06:12PM
You could do a rolling restart if you have more then one php-fpm
instance. If you had only one server, i suppose you could still run two
different instances of php-fpm on different Ports or sockets, so you could
do a rolling restart on even one server.
On Dec 17, 2012 10:08 AM, "Ro Achterberg" <jijwilhosting@gmail.com> wrote:

> php-fpm seems to be missing a feature that could be really useful in a
> shared hosting environment like the one I'm currently setting up.
>
> When dynamically creating pools for new domains, the corresponding unix
> socket isn't being created after having issued a SIGUSR2. It seems that
> currently it is impossible to gracefully create a communication socket
> on-the-fly, which means that php-fpm would have to be stopped/restarted.
> This isn't very handy, for obvious reasons.
>
> Any insights into a graceful solution to this problem would be most
> appreciated!
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 283
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready