[systemd-devel] Forking service behind socket and service.

Michal Koutný mkoutny at suse.com
Tue Apr 2 18:13:29 UTC 2024


Hello.

On Wed, Mar 27, 2024 at 07:35:19AM +0000, Steve Traylen <steve.traylen at cern.ch> wrote:
> In particular I want the socket to close once the fork happens.
> If the service is Type=forking things do work but socket is persisted
> - that's not great for thing doing the original submission. It expects
> the socket to be short lived.

Why? To only have a single instance of the service?
Could you then do me.socket and me.service with StandardInput=socket?
(I guess not because the legacy won't accept.)

What about .socket:MaxConnection=1 then?

Thanks,
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240402/62128160/attachment.sig>


More information about the systemd-devel mailing list