2021-10-17 18:07:22 +02:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-09-28 23:41:06 +02:00
[Unit]
Description = Test DynamicUser= with StateDirectory=
[Service]
2023-02-03 12:28:31 +09:00
ExecStart = test -w %S/waldo
ExecStart = test -w %S/quux/pief
ExecStart = test -w %S/aaa
ExecStart = test -w %S/aaa/bbb
ExecStart = test -w %S/aaa/ccc
ExecStart = test -w %S/xxx
ExecStart = test -w %S/xxx/yyy
ExecStart = test -w %S/xxx/zzz
2023-06-02 23:00:18 +01:00
ExecStart = test -w %S/abc
2023-02-03 12:28:31 +09:00
ExecStart = test -w %S/aaa/111
ExecStart = test -w %S/aaa/222
ExecStart = test -w %S/aaa/333
2023-06-02 23:00:18 +01:00
ExecStart = test -w %S/d:ef
2017-09-28 23:41:06 +02:00
2023-02-03 12:28:31 +09:00
ExecStart = test -d %S/waldo
ExecStart = test -d %S/quux/pief
ExecStart = test -d %S/aaa
ExecStart = test -d %S/aaa/bbb
ExecStart = test -d %S/aaa/ccc
ExecStart = test -d %S/xxx
ExecStart = test -d %S/xxx/yyy
ExecStart = test -d %S/xxx/zzz
2023-06-02 23:00:18 +01:00
ExecStart = test -d %S/abc
2023-02-03 12:28:31 +09:00
ExecStart = test -L %S/aaa/111
ExecStart = test -L %S/aaa/222
ExecStart = test -L %S/aaa/333
2023-06-02 23:00:18 +01:00
ExecStart = test -L %S/d:ef
2022-09-22 13:08:32 +09:00
2023-02-03 12:28:31 +09:00
ExecStart = touch %S/waldo/hoge
ExecStart = touch %S/quux/pief/hoge
ExecStart = touch %S/aaa/hoge
ExecStart = touch %S/aaa/bbb/hoge
ExecStart = touch %S/aaa/ccc/hoge
ExecStart = touch %S/xxx/hoge
ExecStart = touch %S/xxx/yyy/hoge
ExecStart = touch %S/xxx/zzz/hoge
2023-06-02 23:00:18 +01:00
ExecStart = touch %S/abc/hoge
2023-02-03 12:28:31 +09:00
ExecStart = touch %S/aaa/111/foo
ExecStart = touch %S/aaa/222/foo
ExecStart = touch %S/aaa/333/foo
2023-06-02 23:00:18 +01:00
ExecStart = touch %S/d:ef/foo
2022-09-22 13:08:32 +09:00
2023-02-03 12:28:31 +09:00
ExecStart = test -f %S/waldo/hoge
ExecStart = test -f %S/quux/pief/hoge
ExecStart = test -f %S/aaa/hoge
ExecStart = test -f %S/aaa/bbb/hoge
ExecStart = test -f %S/aaa/ccc/hoge
ExecStart = test -f %S/xxx/hoge
ExecStart = test -f %S/xxx/yyy/hoge
ExecStart = test -f %S/xxx/zzz/hoge
2023-06-02 23:00:18 +01:00
ExecStart = test -f %S/abc/hoge
2023-02-03 12:28:31 +09:00
ExecStart = test -f %S/aaa/111/foo
ExecStart = test -f %S/aaa/222/foo
ExecStart = test -f %S/aaa/333/foo
ExecStart = test -f %S/xxx/foo
ExecStart = test -f %S/xxx/yyy/foo
ExecStart = test -f %S/xxx/zzz/foo
2023-06-02 23:00:18 +01:00
ExecStart = test -f %S/d:ef/foo
2022-09-22 13:08:32 +09:00
2023-02-03 12:28:31 +09:00
ExecStart = test -f %S/private/waldo/hoge
ExecStart = test -f %S/private/quux/pief/hoge
ExecStart = test -f %S/private/aaa/hoge
ExecStart = test -f %S/private/aaa/bbb/hoge
ExecStart = test -f %S/private/aaa/ccc/hoge
ExecStart = test -f %S/private/xxx/hoge
ExecStart = test -f %S/private/xxx/yyy/hoge
ExecStart = test -f %S/private/xxx/zzz/hoge
2023-06-02 23:00:18 +01:00
ExecStart = test -f %S/private/abc/hoge
2023-02-03 12:28:31 +09:00
ExecStart = test -f %S/private/aaa/111/foo
ExecStart = test -f %S/private/aaa/222/foo
ExecStart = test -f %S/private/aaa/333/foo
ExecStart = test -f %S/private/xxx/foo
ExecStart = test -f %S/private/xxx/yyy/foo
ExecStart = test -f %S/private/xxx/zzz/foo
2022-09-22 13:08:32 +09:00
2023-06-02 23:00:18 +01:00
ExecStart = sh -x -c 'test "$$STATE_DIRECTORY" = "%S/aaa:%S/aaa/bbb:%S/aaa/ccc:%S/abc:%S/quux/pief:%S/waldo:%S/xxx:%S/xxx/yyy:%S/xxx/zzz"'
2017-09-28 23:41:06 +02:00
Type = oneshot
DynamicUser = yes
2023-06-02 23:00:18 +01:00
StateDirectory = waldo quux/pief aaa/bbb aaa aaa/ccc xxx/yyy:aaa/111 xxx:aaa/222 xxx/zzz:aaa/333 abc:d\:ef
2024-05-27 13:34:40 +02:00
EnvironmentFile = -/usr/lib/systemd/systemd-asan-env
2024-12-03 14:45:43 +01:00
ReadWritePaths = -/coverage