summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorayekat <takeya@bluewin.ch>2017-11-24 12:44:08 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-12-06 10:19:22 +0100
commitca23eeb54c7e164cd16a3a0a631b7f1b73584d89 (patch)
tree93a364959481f20d65c091c8597fe76d0fa90fa8 /man
parente783f957181324110d2ee49377c48acc90d735a2 (diff)
downloadsystemd-ca23eeb54c7e164cd16a3a0a631b7f1b73584d89.tar.gz
systemd-ca23eeb54c7e164cd16a3a0a631b7f1b73584d89.tar.bz2
systemd-ca23eeb54c7e164cd16a3a0a631b7f1b73584d89.zip
tmpfiles: Add specifiers to allow running as user instance
This commit adds specifiers %U, %u and %h for the user UID, name and home directory, respectively. [zj: drop untrue copy-pasted comments and move the next text to the new "Specifiers" section. Now that #7444 has been merged, also drop the specifier functions.]
Diffstat (limited to 'man')
-rw-r--r--man/tmpfiles.d.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml
index 642a124eac..5278c7e7cc 100644
--- a/man/tmpfiles.d.xml
+++ b/man/tmpfiles.d.xml
@@ -631,6 +631,21 @@ r! /tmp/.X[0-9]*-lock</programlisting>
<entry>Identical to <command>uname -r</command> output.</entry>
</row>
<row>
+ <entry><literal>%U</literal></entry>
+ <entry>User UID</entry>
+ <entry>This is the numeric UID of the user running the service manager instance. In case of the system manager this resolves to <constant>0</constant>.</entry>
+ </row>
+ <row>
+ <entry><literal>%u</literal></entry>
+ <entry>User name</entry>
+ <entry>This is the name of the user running the service manager instance. In case of the system manager this resolves to <literal>root</literal>.</entry>
+ </row>
+ <row>
+ <entry><literal>%h</literal></entry>
+ <entry>User home directory</entry>
+ <entry>This is the home directory of the user running the service manager instance. In case of the system manager this resolves to <literal>/root</literal>.</entry>
+ </row>
+ <row>
<entry><literal>%%</literal></entry>
<entry>Escaped %</entry>
<entry>Single percent sign.</entry>