4 ms·
The notification can be done by sending some data to $NOTIFY_SOCKET. That's all sd_notify does.
by growse 3y ago
The notification can be done by sending some data to $NOTIFY_SOCKET. That's all sd_notify does.
- marcosdumay 3y agoNotice that the protocol specification is way more complex than that, and already changed since systemd was released. All the library does is sending some data through the socket, but that's not at all what the docs tell you to do.
- growse 3y agoThe docs could be better, sure, but where did this idea what "interfaces can never be changed" come from?
- marcosdumay 3y agoIt comes from the idea that your computer shouldn't stop working at random. But surely, what is needed is "interfaces can never be changed without redefining your project in a way that makes absolutely obvious it's incompatible with its past". Systemd fails that one too.