Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file
> 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 Looks quite promising. Stefan
Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file
> 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. Stefan
Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file
> Maybe some feedback on the Emacs side about this? There are indeed very > few places where systemd sd_* functions are called in emacs.c, should we > try and re-implement them instead of using the library as is? Would that > be a contribution Emacs devs would be interested in? That would > definitely be beneficial for Emacs on Guix as highlighted by Ludo'. It's hard to tell without seeing the actual patch. But if the code is sufficiently simple, it implements a protocol that's well documented, and it allows us to eliminate the dependency on the systemd library, we might like it. Stefan