• Lucas Werkmeister's avatar
    Notify systemd in daemon-initialized and kill-emacs (Bug#31498) · 19f5f7b1
    Lucas Werkmeister authored
    With --[bg-]daemon and Type=forking, systemd will only consider the
    daemon to have fully started up once the original process exits, and
    will wait until then to start units depending on the Emacs service.  To
    get the same functionality with --fg-daemon, use Type=notify instead of
    Type=simple and explicitly send a readiness notification to systemd at
    the point where the forked process would in --bg-daemon mode notify its
    parent process and cause it to exit.  Similarly, notify systemd at the
    beginning of the shutdown process as well.  (Both of these calls are
    successful no-ops if emacs was not started by systemd.)
    * etc/emacs.service: Update Type.
    * src/emacs.c (daemon-initialized) [HAVE_LIBSYSTEMD]:
    * src/emacs.c (kill-emacs) [HAVE_LIBSYSTEMD]: Call sd_notify().
    19f5f7b1
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...