mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
f0e018e748
This makes rename the test units by a consistent naming scheme, add several logs, and sort internal functions. No functional change.
25 lines
992 B
Desktop File
25 lines
992 B
Desktop File
[Unit]
|
|
Description=Test for specifiers (template unit)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/test %n = exec-specifier@foo-bar.service
|
|
ExecStart=/usr/bin/test %N = exec-specifier@foo-bar
|
|
ExecStart=/usr/bin/test %p = exec-specifier
|
|
ExecStart=/usr/bin/test %P = exec/specifier
|
|
ExecStart=/usr/bin/test %i = foo-bar
|
|
ExecStart=/usr/bin/test %I = foo/bar
|
|
ExecStart=/usr/bin/test %f = /foo/bar
|
|
ExecStart=/usr/bin/test %t = /run
|
|
ExecStart=/usr/bin/test %S = /var/lib
|
|
ExecStart=/usr/bin/test %C = /var/cache
|
|
ExecStart=/usr/bin/test %L = /var/log
|
|
ExecStart=/bin/sh -c 'test %u = $$(id -un 0)'
|
|
ExecStart=/usr/bin/test %U = 0
|
|
ExecStart=/bin/sh -c 'test %h = $$(getent passwd 0 | cut -d: -f 6)
|
|
ExecStart=/bin/sh -c 'test %s = $$(getent passwd 0 | cut -d: -f 7)
|
|
ExecStart=/bin/sh -c 'test %m = $$(cat /etc/machine-id)'
|
|
ExecStart=/bin/sh -c 'test %b = $$(cat /proc/sys/kernel/random/boot_id | sed -e 's/-//g')'
|
|
ExecStart=/bin/sh -c 'test %H = $$(hostname)'
|
|
ExecStart=/bin/sh -c 'test %v = $$(uname -r)'
|