3 ms·
Additionally it is implemented using the same API as systemd providing socket activation compatibility to also provide lazy activation of the server. Couldn't
by vezzy-fnord 11y ago
Additionally it is implemented using the same API as systemd providing socket activation compatibility to also provide lazy activation of the server.
Couldn't immediately tell from reading the source - but is this to say that it uses the sd-* APIs directly, that it implements behavior compatible with sd_listen_fds, or some other form of "socket activation" like superserver or fd-holding?
- daakus 11y agoLargely it just means that it uses the `LISTEN_FDS` environment variable and passes the sockets down starting at fd=3 (more here: https://github.com/facebookgo/grace/blob/master/gracenet/net.go https://github.com/facebookgo/grace/blob/master/gracenet/net...). Admittedly our systemd use case is no more and I haven't tested with it recently so I want to clarify I should probably re-test and make sure it still works.
- hn_4_muppets 11y agoTried that but the problem was it then started writing binary logs, wanted to own the system and reported the system needed to install more systemD components. Like a kernel and userland. Quite scary!