Ludovic Courtès <l...@gnu.org> writes: > Stefan Monnier <monn...@iro.umontreal.ca> skribis: > >>> Would that make sense on systems where systemd is used? If libsystem is >>> already installed it would be more convenient for the user to use the >>> already installed and very likely loaded libsystemd instead of >>> reimplementing the feature. >> >> You might be right, but it's hard to say without seeing the replacement >> code and the actual doc of the protocol. > > As an example, here’s C++ code that checks the LISTEN_* environment > variables I mentioned earlier: > > > https://git.savannah.gnu.org/cgit/guix.git/tree/nix/nix-daemon/guix-daemon.cc#n437 > > Ludo’.
The systemd documentation contains code to implement sd_notify without using libsystemd at https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Notes Lennart Poettering said on Mastodon that the notify protocol is stable and is independent of libsystemd. https://mastodon.social/@pid_eins/112202687764571433 https://mastodon.social/@pid_eins/112202696589971319