emacs --daemon 无法成功启动服务器

emacs --daemon 无法成功启动服务器

我正在尝试在 NixOS 中为 emacs 设置 systemd 守护进程。当我添加 systemd 单元时,我注意到它不断地反复重新启动。

我发现这是因为当我运行 时emacs --daemon,它会显示所有初始化然后返回,但是当我运行 时ps -e | grep emacs,什么都没有显示,所以我假设它分叉了一个不知何故失败的后台进程。 的输出emacs --daemon如下。

我怎样才能emacs --daemon在分叉后不失败,或者至少弄清楚如何调试分叉的进程?

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

相关内容