summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-supplementarygroups.service
blob: 6f6e2ba8226527b102bc90e4a40bffde2b8c117a (plain)
1
2
3
4
5
6
7
8
[Unit]
Description=Test for Supplementary Group

[Service]
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "%G" && HAVE=1; done; test "$$HAVE" -eq 1'
ExecStart=/bin/sh -x -c 'HAVE=0; for g in $$(id -G); do test "$$g" = "1" && HAVE=1; done; test "$$HAVE" -eq 1'
Type=oneshot
SupplementaryGroups=1