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?'.
This commit is contained in:
Efraim Flashner 2019-11-20 21:36:56 +02:00
parent 06c8e87224
commit 71fc086ae9
Signed by untrusted user: efraim
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 1 additions and 1 deletions

View File

@ -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}."