guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One-shot Shepherd services


From: Ludovic Courtès
Subject: Re: One-shot Shepherd services
Date: Tue, 30 Apr 2019 16:23:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Chris Marusich <address@hidden> skribis:

> At first I was a little confused about why we would ever want to use a
> one-shot shepherd service instead of an activation snippet, but after
> reviewing the account-shepherd-service, I think I understand.  It seems
> that we make it a one-shot shepherd service instead of an activation
> snippet so that we can take advantage of shepherd's service dependency
> management.  In the case of account-shepherd-service, it looks like we
> made it a shepherd service to ensure that it would run after
> 'file-systems' is up.  This makes sense, since it could be a little
> awkward to try to ensure proper execution order by extending the
> activation service, and even if we did that, it would duplicate the
> dependency management logic that shepherd gives us already.

Yes, that’s exactly the reason.

The ‘user-homes’ service was introduced to fix a bug whereby, if you
were using a separate /home, home directories would be created at the
wrong time—i.e., before the real /home was mounted.

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]