[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemo
From: |
Ludovic Courtès |
Subject: |
Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file |
Date: |
Fri, 12 Apr 2024 22:38:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hi Nicolas,
Nicolas Graves skribis:
> As promised to Stefan a few months ago, here's a use case of
> Shepherd/Emacs implementation that we developped in RDE.
Would be nice to have it in Guix Home!
> We're using the --daemon option on the Shepherd side to launch the
> server in the background, include code in Emacs configuration to make it
> create a pid-file as soon as the server has started, and redefine
> kill-emacs to be managed by the Shepherd.
Emacs supports systemd-style socket activation so, instead of using a
PID file, you could use ‘make-systemd-constructor’.
Now, that code in emacs.c is unfortunately implemented via libsystemd
and thus disabled in Guix. Using libsystemd in this case is unnecessary
(and increases the attack surface, as we’ve seen with the xz backdoor):
it could read the ‘LISTEN_FDS’ and ‘LISTEN_PID’ environment variables
instead of calling the sd_* functions.
https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html
https://www.gnu.org/software/shepherd/manual/html_node/Service-De_002d-and-Constructors.html#index-make_002dsystemd_002dconstructor
Thanks,
Ludo’.
- [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Nicolas Graves, 2024/04/11
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file,
Ludovic Courtès <=
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Nicolas Graves, 2024/04/13
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Nicolas Graves, 2024/04/13
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Stefan Monnier, 2024/04/13
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Björn Bidar, 2024/04/15
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Stefan Monnier, 2024/04/14
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Ludovic Courtès, 2024/04/19
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Rudolf Schlatte, 2024/04/19
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Stefan Monnier, 2024/04/19
- Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Ludovic Courtès, 2024/04/19
Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file, Nicolas Graves, 2024/04/13