Subject: bug#64008: closed (Re: bug#64008: shepherd respawns a service even when it's disabled)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 14 Jun 2023 16:50:01 +0000

Your bug report

#64008: shepherd respawns a service even when it's disabled

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64008: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64008
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64008: shepherd respawns a service even when it's disabled
From: Ludovic Courtès <[email-masked]>
To: Attila Lendvai <[email-masked]>
Cc: [email-masked]
Date: Wed, 14 Jun 2023 18:49:44 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Attila,

Attila Lendvai <[email-masked]> 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’.

Subject: shepherd respawns a service even when it's disabled
From: Attila Lendvai <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sun, 11 Jun 2023 18:01:24 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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.