Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   systemd-user.conf    ( 5 )

файлы конфигурации системного и сеансового диспетчера служб (System and session service manager configuration files)

Технические характеристики (Specifiers)

Specifiers may be used in the DefaultEnvironment= and ManagerEnvironment= settings. The following expansions are understood:

Table 1. Specifiers available ┌──────────┬──────────────────┬────────────────────────┐ │Specifier Meaning Details │ ├──────────┼──────────────────┼────────────────────────┤ │"%a" │ Architecture │ A short string │ │ │ │ identifying the │ │ │ │ architecture of │ │ │ │ the local system. │ │ │ │ A string such as │ │ │ │ x86, x86-64 or │ │ │ │ arm64. See the │ │ │ │ architectures │ │ │ │ defined for │ │ │ │ ConditionArchitecture= │ │ │ │ in systemd.unit(5) │ │ │ │ for a full list. │ ├──────────┼──────────────────┼────────────────────────┤ │"%A" │ Operating system │ The operating system │ │ │ image version │ image version │ │ │ │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the │ │ │ │ IMAGE_VERSION= field │ │ │ │ of /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%b" │ Boot ID │ The boot ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See random(4) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%B" │ Operating system │ The operating system │ │ │ build ID │ build identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ BUILD_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%H" │ Host name │ The hostname of the │ │ │ │ running system. │ ├──────────┼──────────────────┼────────────────────────┤ │"%l" │ Short host name │ The hostname of the │ │ │ │ running system, │ │ │ │ truncated at the first │ │ │ │ dot to remove any │ │ │ │ domain component. │ ├──────────┼──────────────────┼────────────────────────┤ │"%m" │ Machine ID │ The machine ID of the │ │ │ │ running system, │ │ │ │ formatted as string. │ │ │ │ See machine-id(5) for │ │ │ │ more information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%M" │ Operating system │ The operating system │ │ │ image identifier │ image identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ IMAGE_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%o" │ Operating system │ The operating system │ │ │ ID │ identifier of the │ │ │ │ running system, as │ │ │ │ read from the ID= │ │ │ │ field of │ │ │ │ /etc/os-release. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%v" │ Kernel release │ Identical to uname -r │ │ │ │ output. │ ├──────────┼──────────────────┼────────────────────────┤ │"%w" │ Operating system │ The operating system │ │ │ version ID │ version identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VERSION_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%W" │ Operating system │ The operating system │ │ │ variant ID │ variant identifier of │ │ │ │ the running system, as │ │ │ │ read from the │ │ │ │ VARIANT_ID= field of │ │ │ │ /etc/os-release. If │ │ │ │ not set, resolves to │ │ │ │ an empty string. See │ │ │ │ os-release(5) for more │ │ │ │ information. │ ├──────────┼──────────────────┼────────────────────────┤ │"%T" │ Directory for │ This is either /tmp or │ │ │ temporary files │ the path "$TMPDIR", │ │ │ │ "$TEMP" or "$TMP" are │ │ │ │ set to. (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼──────────────────┼────────────────────────┤ │"%V" │ Directory for │ This is either │ │ │ larger and │ /var/tmp or the path │ │ │ persistent │ "$TMPDIR", "$TEMP" or │ │ │ temporary files │ "$TMP" are set to. │ │ │ │ (Note that the │ │ │ │ directory may be │ │ │ │ specified without a │ │ │ │ trailing slash.) │ ├──────────┼──────────────────┼────────────────────────┤ │"%%" │ Single percent │ Use "%%" in place of │ │ │ sign │ "%" to specify a │ │ │ │ single percent sign. │ └──────────┴──────────────────┴────────────────────────┘