From 6ceb0a4094908dd213a78b9f6d0c59a684831ab0 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 10 Mar 2022 16:15:54 +0100 Subject: core: introduce %R specifier for pretty hostname Resolves: #20054 --- man/systemd.unit.xml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'man/systemd.unit.xml') diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml index b20072f0a2..8f2f649747 100644 --- a/man/systemd.unit.xml +++ b/man/systemd.unit.xml @@ -2031,6 +2031,8 @@ Note that this setting is not influenced by the Us %l + Short host name The hostname of the running system at the point in time the unit configuration is loaded, truncated at the first dot to remove any domain component. @@ -2062,6 +2064,13 @@ Note that this setting is not influenced by the Us Unescaped prefix name Same as %p, but with escaping undone. + + + %R + Pretty host name + The pretty hostname of the running system at the point in time the unit configuration is loaded, as read from the PRETTY_HOSTNAME= field of /etc/machine-info. If not set, resolves to the short hostname. See machine-info5 for more information. + %s User shell -- cgit v1.2.1