help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does stopping user shepherd kill my Emacs and how I make it to stop?


From: Tomas Volf
Subject: Why does stopping user shepherd kill my Emacs and how I make it to stop?
Date: Fri, 22 Nov 2024 20:03:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]