unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#64008: shepherd respawns a service even when it's disabled
@ 2023-06-11 18:01 Attila Lendvai
  2023-06-11 18:06 ` Attila Lendvai
  2023-06-14 16:49 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Attila Lendvai @ 2023-06-11 18:01 UTC (permalink / raw)
  To: 64008

the issue:

i'm in a situation where my service quits after a few seconds of CPU usage (i.e. the default-respawn-limit is not triggered). therefore shepherd keeps restarting it, practically in a busy loop.

suggested solution:

maybe respawn-service should check for the disabled state, so that the admin can intervene by `herd disable myservice`.

a longer term solution could be to add a respawn-delay field for <service>, and default it to something non-zero.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
The mind: an excellent servant, but a dangerous master.





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

* bug#64008: shepherd respawns a service even when it's disabled
  2023-06-11 18:01 bug#64008: shepherd respawns a service even when it's disabled Attila Lendvai
@ 2023-06-11 18:06 ` Attila Lendvai
  2023-06-14 16:49 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Attila Lendvai @ 2023-06-11 18:06 UTC (permalink / raw)
  To: 64008

i forgot to mention that the service is in the stopped state while this is happening, at least according to `herd status`.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Most of our lives, most of us live in realities determined by others, imprinted in our brains by education, by religion, by politics, by the authorities.”
	— Timothy Leary (1920–1996)




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

* bug#64008: shepherd respawns a service even when it's disabled
  2023-06-11 18:01 bug#64008: shepherd respawns a service even when it's disabled Attila Lendvai
  2023-06-11 18:06 ` Attila Lendvai
@ 2023-06-14 16:49 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2023-06-14 16:49 UTC (permalink / raw)
  To: Attila Lendvai; +Cc: 64008-done

Hi Attila,

Attila Lendvai <attila@lendvai.name> skribis:

> i'm in a situation where my service quits after a few seconds of CPU usage (i.e. the default-respawn-limit is not triggered). therefore shepherd keeps restarting it, practically in a busy loop.
>
> suggested solution:
>
> maybe respawn-service should check for the disabled state, so that the admin can intervene by `herd disable myservice`.

Turns out the service controller was ignoring the ‘enabled?’  flag,
leaving it up to the caller to check it.

This is fixed by Shepherd commit
7c88d67076a0bb1d9014b3bc23ed9c68f1c702ab.

Thanks again,
Ludo’.




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

end of thread, other threads:[~2023-06-14 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-11 18:01 bug#64008: shepherd respawns a service even when it's disabled Attila Lendvai
2023-06-11 18:06 ` Attila Lendvai
2023-06-14 16:49 ` 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).