[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to cleanly stop emacs daemon from commandline?
From: |
Eli Zaretskii |
Subject: |
Re: how to cleanly stop emacs daemon from commandline? |
Date: |
Sun, 02 Oct 2016 11:45:55 +0300 |
> From: Tom Roche <Tom_Roche@pobox.com>
> Date: Sat, 01 Oct 2016 19:49:49 -0700
>
> summary: I have tried several variations of
>
> $ emacsclient -e '(your-elisp-here)'
>
> and have found none that would cause a running `emacs --daemon` process (EDP)
> to stop "cleanly" as defined by T.V. Raman (below):
>
> 1. release all locks (I have tested only desktop lock)
> 2. stop (e.g., such that `pgrep -l emacs` no longer shows its PID)
>
> Is there no way to do this? Conversely, is the EDP designed to run until
> brutally whacked? (with, e.g., `kill -9 ${PID}`)
"emacsclient --eval '(kill-emacs)'" works for me, with Emacs 25.1 at
least.