unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Why does stopping user shepherd kill my Emacs and how I make it to stop?
@ 2024-11-22 19:03 Tomas Volf
  2024-11-24  9:04 ` Nils Landt
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Volf @ 2024-11-22 19:03 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]


Hi,

today I noticed that when I stop my user shepherd (`herd stop root'), it
kills my Emacs instance.  I would like to point out that the Emacs
daemon is *not* managed by the Shepherd, I just start it using the
following in the `init.el':

--8<---------------cut here---------------start------------->8---
(require 'server)

(or (server-running-p)
    (server-start))
--8<---------------cut here---------------end--------------->8---

I do not have many user shepherd services:

--8<---------------cut here---------------start------------->8---
Started:
 + dbus
 + pulseaudio
 + root
 + ssh-agent
--8<---------------cut here---------------end--------------->8---

Emacs does not log anything into the terminal regarding the termination
cause, and shepherd does not mention anything at all.  Here is full log
from shepherd start to termination:

--8<---------------cut here---------------start------------->8---
Starting service root...
Service root started.
Service root running with value #t.
Service root has been started.
WARNING: Use of `load' in declarative module (#{ g107}#).  Add #:declarative? #f to your define-module invocation.
Daemonizing...
Restarting signal handler.
Now running as process 17602.
Starting services...
Configuration successfully loaded from '/home/wolf/.config/shepherd/init.scm'.
Starting service ssh-agent...
Starting service pulseaudio...
Starting service dbus...
Service ssh-agent has been started.
Service pulseaudio has been started.
Service dbus has been started.
Service ssh-agent started.
Successfully started 3 services in the background.
Service pulseaudio started.
Service dbus started.
Service ssh-agent running with value 17603.
Service pulseaudio running with value 17604.
Service dbus running with value 17605.
Stopping service root...
Stopping service ssh-agent...
Service ssh-agent stopped.
Service ssh-agent is now stopped.
Stopping service pulseaudio...
Service pulseaudio stopped.
Service pulseaudio is now stopped.
Stopping service dbus...
Service dbus stopped.
Service dbus is now stopped.
Exiting.
--8<---------------cut here---------------end--------------->8---

Would anyone be able to advice why this is happening (or at least how to
find out)?  And, more importantly, how do I prevent this?  I do *not*
want my Emacs coupled to my user shepherd.

Thanks a lot,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-11-24  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 19:03 Why does stopping user shepherd kill my Emacs and how I make it to stop? Tomas Volf
2024-11-24  9:04 ` Nils Landt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).