emacs --daemon ne démarre pas le serveur avec succès


1

J'essaie de configurer un démon systemd pour emacs dans NixOS. Lorsque j’ai ajouté une unité systemd, j’ai remarqué qu’elle redémarrait continuellement.

J'ai découvert que c'était parce que quand j'ai couru emacs --daemon, il montrerait toute l'initialisation puis reviendrait, mais quand j'ai couru ps -e | grep emacs, rien ne se présenterait, donc je suppose que cela a déclenché un processus d’arrière-plan qui a échoué. La sortie de emacs --daemon est inférieure à.

Comment puis-je soit obtenir emacs --daemon ne pas échouer après avoir bricolé, ou au moins comprendre comment déboguer le processus forké?

Warning: due to a long standing Gtk+ bug
http://bugzilla.gnome.org/show_bug.cgi?id=85715
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Loading /home/olynch/.emacs.d/core/core-load-paths.el (source)...
Loading /home/olynch/.emacs.d/core/core-load-paths.el (source)...done
Loading /home/olynch/.spacemacs...
Loading /home/olynch/.spacemacs...done
(Spacemacs) Warning: Cannot find font "Hack"!
Mark set
Mark set
Loading /home/olynch/.emacs.d/.cache/spacemacs-buffer.el (source)...
Loading /home/olynch/.emacs.d/.cache/spacemacs-buffer.el (source)...done
Mark set
Mark set
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/funcs.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/funcs.el (source)...done
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/keybindings.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/keybindings.el (source)...done
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/syntax-checking/config.el (source)...
Loading /home/olynch/.emacs.d/layers/syntax-checking/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/emacs-lisp/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/emacs-lisp/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+source-control/git/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+source-control/git/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/markdown/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/markdown/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/org/config.el (source)...
Loading /home/olynch/.emacs.d/layers/org/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/shell/config.el (source)...
Loading /home/olynch/.emacs.d/layers/shell/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/haskell/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/haskell/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/clojure/funcs.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/clojure/funcs.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/clojure/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/clojure/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/c-c++/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/c-c++/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/nixos/config.el (source)...
Loading /home/olynch/.emacs.d/layers/nixos/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+window-management/eyebrowse/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+window-management/eyebrowse/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/rust/funcs.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/rust/funcs.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/rust/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/rust/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/latex/funcs.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/latex/funcs.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/latex/config.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/latex/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/auto-completion/funcs.el (source)...
Loading /home/olynch/.emacs.d/layers/auto-completion/funcs.el (source)...done
Loading /home/olynch/.emacs.d/layers/auto-completion/config.el (source)...
Loading /home/olynch/.emacs.d/layers/auto-completion/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/spell-checking/config.el (source)...
Loading /home/olynch/.emacs.d/layers/spell-checking/config.el (source)...done
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs-base/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+distribution/spacemacs/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/syntax-checking/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/syntax-checking/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/emacs-lisp/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/emacs-lisp/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+source-control/git/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+source-control/git/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/markdown/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/markdown/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/org/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/org/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/org/extensions.el (source)...
Loading /home/olynch/.emacs.d/layers/org/extensions.el (source)...done
Loading /home/olynch/.emacs.d/layers/shell/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/shell/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+source-control/version-control/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+source-control/version-control/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/haskell/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/haskell/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/clojure/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/clojure/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/c-c++/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/c-c++/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/nixos/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/nixos/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/floobits/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/floobits/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/restclient/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/restclient/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/sql/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/sql/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/sql/extensions.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/sql/extensions.el (source)...done
Loading /home/olynch/.emacs.d/layers/+window-management/eyebrowse/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+window-management/eyebrowse/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/rust/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/rust/packages.el (source)...done
Loading /home/olynch/.emacs.d/private/writeroom/packages.el (source)...
Loading /home/olynch/.emacs.d/private/writeroom/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/latex/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/latex/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/latex/extensions.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/latex/extensions.el (source)...done
Loading /home/olynch/.emacs.d/layers/+lang/agda/extensions.el (source)...
Loading /home/olynch/.emacs.d/layers/+lang/agda/extensions.el (source)...done
Loading /home/olynch/.emacs.d/layers/auto-completion/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/auto-completion/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/spell-checking/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/spell-checking/packages.el (source)...done
Loading /home/olynch/.emacs.d/layers/deft/packages.el (source)...
Loading /home/olynch/.emacs.d/layers/deft/packages.el (source)...done
(Spacemacs) Warning: Agda not detected, be sure that Agda binaries are available in your PATH or check the installation instructions in the README file.
The variable evil-jumper-file is obsolete.  Persistence is done with savehist now.
Truncate long lines enabled

Starting new Ispell process /run/current-system/sw/bin/aspell with default dictionary...
Spacemacs is ready.
Restarting server

As-tu essayé services.emacs.enable = true;? C'est suggéré dans le manuel NixOS .
sid-kap
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.