3 ms·
The correct Systemd solution would be to create a socket unit but your solutions works without modifying the service code
by Un1corn 5y ago
The correct Systemd solution would be to create a socket unit but your solutions works without modifying the service code
- Spivak 5y agoI can't find anything for an officially supported for Apache or Nginx to support inetd/systemd socket activation bit it certainly would be nice.
- growse 5y agoI think this requires support from the service, no? Not everything that wants to open up a port seems to support socket activation. I tried with 6tunnel and couldn't get it to work.
- _0w8t 5y agosystemd provides a workaround in the form of systemd-socket-proxyd [1]. Granted it copies data, but when the max performance is not required, it works. Sometimes services allow to be configured to listen UNIX socket path, then systemd-socket-proxyd allows to disable ip address access by forwarding the network socket to that. [1] https://www.freedesktop.org/software/systemd/man/systemd-socket-proxyd.html https://www.freedesktop.org/software/systemd/man/systemd-soc...