2021-10-18 00:07:22 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2016-10-24 18:38:53 +08:00
|
|
|
[Unit]
|
|
|
|
Description=Test for Supplementary Group with multiple groups and Group=1
|
|
|
|
|
|
|
|
[Service]
|
2022-11-04 19:50:04 +08:00
|
|
|
ExecStart=/bin/sh -x -c 'for g in $$(id -G); do test "$$g" = "1" && exit 0; done; exit 1'
|
|
|
|
ExecStart=/bin/sh -x -c 'for g in $$(id -G); do test "$$g" = "2" && exit 0; done; exit 1'
|
2018-10-13 16:26:48 +08:00
|
|
|
ExecStart=/bin/sh -x -c 'test "$$(id -g)" = "1" && test "$$(id -u)" = "%U"'
|
2016-10-24 18:38:53 +08:00
|
|
|
Type=oneshot
|
|
|
|
Group=1
|
2022-11-04 19:24:10 +08:00
|
|
|
SupplementaryGroups=1 2
|