GNU bug report logs -
#76338
shepherd restarts service during shutdown and then waits forever
Previous Next
Reported by: Dariqq <dariqq <at> posteo.net>
Date: Sun, 16 Feb 2025 14:40:03 UTC
Severity: grave
Tags: patch
Merged with 76368
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Ludo,
Thank you for the patch.
On 23.02.25 22:51, Ludovic Courtès wrote:
> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>
>> I was wondering if this shouldn't be part of an implicit default %shepherd-default-requires that
>> could be overridden if needed... but I think even in systemd land you
>> must explicitly specify wanted using e.g. 'WantedBy=multi-user.target'
>> in your systemd unit definition, so I guess it's fine that it must be
>> explicitly specified.
>
> I almost changed the default value of ‘requirement’ to '(user-processes)
> in <shepherd-service>, but then I thought this would need more testing
> and discussion: surely there are places in Guix and in code/config out
> there that relies on the current default value.
>
I don't think this would have been a good change:
- It breaks services that correctly don't depend on user-processes, i.e.
filesystem mounts
- It breaks every home-services that (correctly) depends on nothing but
the home-shepherd .
- It creates a (non obvious) discrepancy between the shepherd service
API and the Guix layer on top
Imo ideally all services would expose their shepherd requirements (and
service-autostart, extra daemon args, daemon-environment, extra actions,
...) in the configuration records which would allows users to workaround
such a problem themselves.
The current system depends on whether the author of the service added
it, feels a bit arbitrary and is not flexible if a setting one would
like to adjust is not configurable.
(i am guilty of this as well for the service i contributed to guix)
But this for a discussion at another time.
> Thanks for your feedback,
> Ludo’.
This bug report was last modified 80 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.