2016-11-02 22:59:41 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Test DynamicUser with User= and SupplementaryGroups=
|
|
|
|
|
|
|
|
[Service]
|
2018-09-29 14:05:52 +02:00
|
|
|
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
|
|
|
|
ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "1"'
|
2016-11-02 22:59:41 +01:00
|
|
|
Type=oneshot
|
|
|
|
User=1
|
|
|
|
DynamicUser=yes
|
|
|
|
SupplementaryGroups=1
|