[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23170: [PATCH shepherd] Restart dependent services on service restar
bug#23170: [PATCH shepherd] Restart dependent services on service restart
Sun, 26 Aug 2018 23:08:34 +0200
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Carlo Zancanaro <address@hidden> skribis:
> On Sun, Aug 26 2018, Ludovic Courtès wrote:
>> I wonder if there are cases where one might want to restart a
>> service without restarting its dependent services. We can probably
>> ignore it for now, but perhaps we’ll need to add a flag or a
>> separate action later.
> I think this is best served by 'herd stop', followed by 'herd
> start'. This patch just special-cases the 'restart' action, so
> manually stopping then starting a service will behave as the old
> restart used to.
Great, I had overlooked this.
>> For clarity, should we do an explicit “herd stop test1” followed by
>> “herd start test1”? I know it’s currently equivalent under the
>> hood, but it might be slightly clearer. WDYT?
> Hopefully the above also answers this, too.
It does, thanks!
> I did consider whether it was worth adding a test for 'herd stop' to
> make sure it still stops dependent services, and 'herd start' to make
> sure it doesn't start dependent services, but in the end I decided not
> to. I'm happy to send through another patch to test these cases,
> though, if you think it would be worthwhile.
No, that’s fine.
I forgot if this was already done, but perhaps you can add a bit in the
manual to insist that ‘restart’ is not quite the same as ‘stop’ +
Anyway, it all LGTM, thanks!