Subject: Re: bug#55444: elogind startup race between shepherd and dbus-daemon

From: Ludovic Courtès <[email-masked]>
Date: Sat, 28 May 2022 23:26:23 +0200

Hello,

Josselin Poiret <[email-masked]> skribis:

> Great idea!  The patch LGTM, although I'd argue that most of the wrapper
> code could belong in (gnu services herd), in something like
> (wait-for-services #:select? select? #:retries (n 20)) so that someone
> else doesn't end up recoding this for another service.

Good idea, done here:

  f383838a09 services: elogind: When started by dbus-daemon, wait for the Shepherd service.
  b04ae71def services: herd: Add 'wait-for-service'.

Let me know what you think!

Thanks,
Ludo’.