]>
Commit | Line | Data |
---|---|---|
9f82d685 YW |
1 | [Unit] |
2 | Description=Test DynamicUser with static User= whose uid and gid are different | |
3 | # On Fedora, user adm has uid==3 and gid==4. | |
4 | ||
5 | [Service] | |
6 | Type=oneshot | |
7 | ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"' | |
8 | # Multiple ExecStart= lines causes the issue #9702. | |
9 | ExecStart=/bin/sh -x -c 'test "$$(id -nG)" = "adm" && test "$$(id -ng)" = "adm" && test "$$(id -nu)" = "adm"' | |
10 | DynamicUser=yes | |
11 | User=adm |