GNU bug report logs - #77109
[feature] [shepherd] Accept multiple services for actions

Previous Next

Package: guix;

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

Date: Wed, 19 Mar 2025 06:04:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tomas Volf <~@wolfsden.cz>
Cc: 77109 <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: bug#77109: [feature] [shepherd] Accept multiple services for actions
Date: Wed, 19 Mar 2025 19:57:30 +0100
Hi,

Tomas Volf <~@wolfsden.cz> skribis:

> I guess it could be special-cased for start, stop, restart, since these
> three do not take (by default) any arguments (I *think* you can make
> `start' procedure taking arguments?  I have never tried.).  But for
> general case, the `service2' is passed as an argument to the action
> `restart' of service `service1'.

I think we could special-case that on the client side (in ‘herd’) with
something like:

  herd restart --batch s1 s2 s3

which would restart those services one after the other.

WDYT?

Ludo’.




This bug report was last modified 82 days ago.

Previous Next


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