GNU bug report logs - #73879
[shepherd] 'herd start x' error should be clearer when its been disabled

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Sat, 19 Oct 2024 12:33:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 73879 in the body.
You can then email your comments to 73879 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#73879; Package guix. (Sat, 19 Oct 2024 12:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 19 Oct 2024 12:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: [shepherd] 'herd start x' error should be clearer when its been
 disabled
Date: Sat, 19 Oct 2024 21:32:17 +0900
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




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sun, 20 Oct 2024 09:46:02 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Sun, 20 Oct 2024 09:46:02 GMT) Full text and rfc822 format available.

Message #10 received at 73879-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 73879-done <at> debbugs.gnu.org
Subject: Re: bug#73879: [shepherd] 'herd start x' error should be clearer
 when its been disabled
Date: Sun, 20 Oct 2024 11:44:35 +0200
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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’.




Information forwarded to bug-guix <at> gnu.org:
bug#73879; Package guix. (Wed, 23 Oct 2024 06:03:02 GMT) Full text and rfc822 format available.

Message #13 received at 73879 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 73879 <at> debbugs.gnu.org
Subject: Re: bug#73879: closed (Re: bug#73879: [shepherd] 'herd start x'
 error should be clearer when its been disabled)
Date: Wed, 23 Oct 2024 15:00:25 +0900
Hi,

[...]

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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):
>
> $ 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
>
> Ludo’.

Yay! Thanks for the quick resolution.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 20 Nov 2024 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.