summaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-11-20 21:36:56 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-01-05 20:28:29 +0200
commit71fc086ae90bfeb1484e08cd95a0d104c7cdf39d (patch)
tree0997a78c1e78056d9ae790ecf21479773402b6f2 /gnu/services
parent06c8e87224decebc0a3d5bdc7d2ca13cb2b08299 (diff)
downloadpatches-71fc086ae90bfeb1484e08cd95a0d104c7cdf39d.tar
patches-71fc086ae90bfeb1484e08cd95a0d104c7cdf39d.tar.gz
services: host-name: Make service one-shot.
* gnu/services/base.scm (host-name-service-type): Remove 'respawn?' keyword from shepherd-service-type, add 'one-shot?'.
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/base.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 77215e411c..0c154d1c4e 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -706,7 +706,7 @@ to add @var{device} to the kernel's entropy pool. The service will fail if
(provision '(host-name))
(start #~(lambda _
(sethostname #$name)))
- (respawn? #f)))))
+ (one-shot? #t)))))
(define (host-name-service name)
"Return a service that sets the host name to @var{name}."