| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test DynamicUser with static User= whose uid and gid are different |
| 4 |
# On Fedora, user adm has uid==3 and gid==4. |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=oneshot |
| 8 |
ExecStart=bash -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"' |
| 9 |
# Multiple ExecStart= lines causes the issue #9702. |
| 10 |
ExecStart=bash -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"' |
| 11 |
DynamicUser=yes |
| 12 |
User=adm |
| 13 |
ReadWritePaths=-/coverage |