unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled
@ 2024-10-19 12:32 Maxim Cournoyer
  2024-10-20  9:44 ` Ludovic Courtès
       [not found] ` <handler.73879.D73879.172941751321613.notifdone@debbugs.gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2024-10-19 12:32 UTC (permalink / raw)
  To: 73879

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




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

* bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled
  2024-10-19 12:32 bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled Maxim Cournoyer
@ 2024-10-20  9:44 ` Ludovic Courtès
       [not found] ` <handler.73879.D73879.172941751321613.notifdone@debbugs.gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2024-10-20  9:44 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 73879-done

Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@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’.




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

* bug#73879: closed (Re: bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled)
       [not found] ` <handler.73879.D73879.172941751321613.notifdone@debbugs.gnu.org>
@ 2024-10-23  6:00   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2024-10-23  6:00 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 73879

Hi,

[...]

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer@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




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

end of thread, other threads:[~2024-10-23  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 12:32 bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled Maxim Cournoyer
2024-10-20  9:44 ` Ludovic Courtès
     [not found] ` <handler.73879.D73879.172941751321613.notifdone@debbugs.gnu.org>
2024-10-23  6:00   ` bug#73879: closed (Re: bug#73879: [shepherd] 'herd start x' error should be clearer when its been disabled) Maxim Cournoyer

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).