Subject: bug#73879: closed (Re: bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 20 Oct 2024 09:46:02 +0000

Your bug report

#73879: [shepherd] 'herd start x' error should be clearer when its been 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].

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

Subject: Re: bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled
From: Ludovic Courtès <[email-masked]>
To: Maxim Cournoyer <[email-masked]>
Cc: [email-masked]
Date: Sun, 20 Oct 2024 11:44:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Maxim,

Maxim Cournoyer <[email-masked]> skribis:

> Currently, attempting to start service x when it was disable gives
> something like:
>
> herd: error: impossible to start service x
>
>
> while the actual root cause is that the service has been disabled.

This is fixed on the ‘devel’ branch (commit
796324279c86ba40a8a88505fcbbe3f6568ed7ba):

--8<---------------cut here---------------start------------->8---
$ herd stop pulseaudio-rtp-sink 
$ herd disable pulseaudio-rtp-sink 
Disabled service pulseaudio-rtp-sink.
$ herd start pulseaudio-rtp-sink 
Service pulseaudio-rtp-sink is currently disabled.
herd: error: failed to start service pulseaudio-rtp-sink
--8<---------------cut here---------------end--------------->8---

Ludo’.

Subject: [shepherd] 'herd start x' error should be clearer when its been disabled
From: Maxim Cournoyer <[email-masked]>
To: bug-guix <[email-masked]>
Date: Sat, 19 Oct 2024 21:32:17 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Currently, attempting to start service x when it was disable gives
something like:

--8<---------------cut here---------------start------------->8---
herd: error: impossible to start service x
--8<---------------cut here---------------end--------------->8---

while the actual root cause is that the service has been disabled.

The error should probably just print something like:

--8<---------------cut here---------------start------------->8---
herd: error: service x is disabled; run 'herd enable x' to enable it
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim