From 89fdc4b45f9c147bf64eb9763172553044a7f0ab Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 7 Sep 2024 16:51:42 +0200 Subject: services: host-name: Use the host name as the running value. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the “running value” of the ‘host-name’ service would be #. This change makes it more pleasing to the eye. * gnu/services/base.scm (host-name-service-type): ‘start’ returns NAME. Change-Id: I38b8320e43639b6623475871ca6fbad3a459eb59 --- gnu/services/base.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."))) -- cgit v1.2.3