[systemd-devel] Is it possible to let systemd create a listening socket and yet be able to have that socket activate nothing, at least temporarily?

Michael Biebl mbiebl at gmail.com
Fri Oct 7 07:41:53 UTC 2022


Am Fr., 7. Okt. 2022 um 09:24 Uhr schrieb Klaus Ebbe Grue <grue at di.ku.dk>:
> QUESTION: Is it possible to let systemd create a listening socket and yet be able to have that socket activate nothing, at least temporarily?

Unfortunately not. You'd need some kind of "maintenance" mode you
could put a service in, where systemd would keep the socket open but
just queues the requests until the service is put out of maintenance
mode again. There is no such feature atm although I would have found
that useful for Debian as well (during package upgrades).
The best you can currently do is probably to stop the .socket to avoid
accidental activation during the upgrade.


More information about the systemd-devel mailing list