test/test-execute/exec-runtimedirectory-owner.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for RuntimeDirectory owner (must not be the default group of the user if Group is set) |
| 4 | |
| 5 | [Service] |
| 6 | ExecStart=bash -x -c 'group=$$(stat -c %%G %t/test-exec_runtimedirectory-owner-daemon); test "$$group" = "daemon"' |
| 7 | Type=oneshot |
| 8 | Group=daemon |
| 9 | User=root |
| 10 | RuntimeDirectory=test-exec_runtimedirectory-owner-daemon |