aboutsummaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-09-07 16:51:42 +0200
committerLudovic Courtès <ludo@gnu.org>2024-09-09 17:17:55 +0200
commit89fdc4b45f9c147bf64eb9763172553044a7f0ab (patch)
tree172bdb98b35aed0cc54114eaf40fedfc687ae618 /gnu/services
parent9d17cda3d915e1226494a1983ef95a3c600acf9d (diff)
downloadguix-89fdc4b45f9c147bf64eb9763172553044a7f0ab.tar
guix-89fdc4b45f9c147bf64eb9763172553044a7f0ab.tar.gz
services: host-name: Use the host name as the running value.
Previously, the “running value” of the ‘host-name’ service would be #<unspecified>. This change makes it more pleasing to the eye. * gnu/services/base.scm (host-name-service-type): ‘start’ returns NAME. Change-Id: I38b8320e43639b6623475871ca6fbad3a459eb59
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/base.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 4b5b103cc3..feca7ecce9 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -801,7 +801,8 @@ host names."
(documentation "Initialize the machine's host name.")
(provision '(host-name))
(start #~(lambda _
- (sethostname #$name)))
+ (sethostname #$name)
+ #$name))
(one-shot? #t)))
(description "Initialize the machine's host name.")))