[systemd-devel] Socket is dying, how to automatically restart it?

David Strauss david at davidstrauss.net
Thu Apr 11 23:35:11 PDT 2013


2013/4/11 Koen Kooi <koen at dominion.thruhere.net>:
>> On Wed, Apr 10, 2013 at 11:00 PM, Koen Kooi <koen at dominion.thruhere.net> wrote:
>>> restarting it once it fails
>>
>> Is "it" the socket or the service?
>
> socket

I believe I experienced this with PHP-FPM when I injected the sockets
by abusing PHP-FPM's internal env var method for preserving sockets
during a configuration reload.

We didn't not study the problem in detail, but I did raise it with
Lennart, especially after removing PHP-FPM's socket cleanup routine
fixed the issue. Lennart's pretty confident that an application
closing a socket on shutdown shouldn't break systemd's ability to
listen. Still, there must be something else going on.

--
David Strauss
   | david at davidstrauss.net
   | +1 512 577 5827 [mobile]


More information about the systemd-devel mailing list