* bug#71478: [shepherd] Unloading a service renders shepherd unresponsive
@ 2024-06-10 14:31 Ludovic Courtès
2024-06-10 21:06 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2024-06-10 14:31 UTC (permalink / raw)
To: 71478
Seen with 0.10.4:
--8<---------------cut here---------------start------------->8---
ludo@guix-hpc7 ~$ sudo herd status tor
Statut de tor :
It is running since sam. 01 juin 2024 15:58:57 (9 days ago).
Valeur d’exécution 453.
Activé.
Fournit (tor).
Requiert (user-processes loopback syslogd).
Sera relancé.
ludo@guix-hpc7 ~$ sudo herd unload root tor
Removing service 'tor'...
Done.
ludo@guix-hpc7 ~$ sudo herd status tor
^C
ludo@guix-hpc7 ~$ sudo herd status
^C
ludo@guix-hpc7 ~$ ps 453
PID TTY STAT TIME COMMAND
ludo@guix-hpc7 ~$ cat /proc/1/cmdline |xargs -0
/gnu/store/bhynhk0c6ssq3fqqc59fvhxjzwywsjbb-guile-3.0.9/bin/guile --no-auto-compile /gnu/store/39li5qpiaj1lx89xgahlbgvfnjhpcpwg-shepherd-0.10.4/bin/shepherd --config /gnu/store/2vynkp1zv8ybq513clrcp1ga1bi156wb-shepherd.conf
--8<---------------cut here---------------end--------------->8---
Inetd services such as sshd also become unavailable: shepherd accepts
connections but does not process them.
Excerpt of /var/log/messages:
--8<---------------cut here---------------start------------->8---
Jun 10 16:20:29 localhost shepherd[1]: Removing service 'tor'...
Jun 10 16:20:29 localhost shepherd[1]: Stopping service tor...
Jun 10 16:20:29 localhost Tor[2]: Catching signal TERM, exiting cleanly.
Jun 10 16:20:29 localhost shepherd[1]: Service tor stopped.
Jun 10 16:20:29 localhost shepherd[1]: Service tor is now stopped.
Jun 10 16:20:29 localhost shepherd[1]: Done.
--8<---------------cut here---------------end--------------->8---
The workaround is to reboot the hard way:
sudo guile --no-auto-compile -L /gnu/store/39li5qpiaj1lx89xgahlbgvfnjhpcpwg-shepherd-0.10.4/share/guile/site/3.0/ -c '(use-modules (shepherd system)) (sync) (pk "bye!") (reboot)'
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#71478: [shepherd] Unloading a service renders shepherd unresponsive
2024-06-10 14:31 bug#71478: [shepherd] Unloading a service renders shepherd unresponsive Ludovic Courtès
@ 2024-06-10 21:06 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-06-10 21:06 UTC (permalink / raw)
To: 71478
Ludovic Courtès <ludovic.courtes@inria.fr> skribis:
> ludo@guix-hpc7 ~$ sudo herd status tor
> Statut de tor :
> It is running since sam. 01 juin 2024 15:58:57 (9 days ago).
> Valeur d’exécution 453.
> Activé.
> Fournit (tor).
> Requiert (user-processes loopback syslogd).
> Sera relancé.
> ludo@guix-hpc7 ~$ sudo herd unload root tor
> Removing service 'tor'...
> Done.
> ludo@guix-hpc7 ~$ sudo herd status tor
> ^C
A simpler workaround is to do ‘herd stop SERVICE’ before
‘herd unload root SERVICE’.
Anyway, fixed in Shepherd commit
b81aa4d2554b9ddff683c33c0d1d7036842d2b76.
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-11 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-10 14:31 bug#71478: [shepherd] Unloading a service renders shepherd unresponsive Ludovic Courtès
2024-06-10 21:06 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).