Linux sockets and system d
The key point here is to specify Accept=yes
, which will make the socket accept connections (behaving like inetd) and pass
only the resulting connection socket to the service handler.
Create /etc/systemd/system/baz.socket
:
[Unit]