[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/05: services: account: Make 'user-homes' a one-shot service.
From: |
guix-commits |
Subject: |
03/05: services: account: Make 'user-homes' a one-shot service. |
Date: |
Tue, 23 Apr 2019 10:39:59 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 051b279fd08eec80cda248aa12e6875005b7dc4f
Author: Ludovic Courtès <address@hidden>
Date: Tue Apr 23 14:51:47 2019 +0200
services: account: Make 'user-homes' a one-shot service.
* gnu/system/shadow.scm (account-shepherd-service): Add 'one-shot?'
field. Return #t from 'start'.
---
gnu/system/shadow.scm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 7dc36f4..13b8b14 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -323,6 +323,7 @@ accounts among ACCOUNTS+GROUPS."
(list (shepherd-service
(requirement '(file-systems))
(provision '(user-homes))
+ (one-shot? #t)
(modules '((gnu build activation)
(gnu system accounts)))
(start (with-imported-modules (source-module-closure
@@ -332,9 +333,7 @@ accounts among ACCOUNTS+GROUPS."
(activate-user-home
(map sexp->user-account
(list #$@(map user-account->gexp accounts))))
- #f))) ;stop
- (stop #~(const #f))
- (respawn? #f)
+ #t))) ;success
(documentation "Create user home directories."))))
(define (shells-file shells)