summaryrefslogtreecommitdiffstats
path: root/test/test-execute/exec-runtimedirectory-mode.service
blob: 85ae5161c4aab71a9f6e90f06048ba43a8ea288b (plain)
1
2
3
4
5
6
7
8
9
[Unit]
Description=Test for RuntimeDirectoryMode

[Service]
ExecStart=/bin/sh -x -c 'mode=$$(stat -c %%a %t/test-exec_runtimedirectory-mode); test "$$mode" = "750"'
ExecStart=/bin/sh -x -c 'test "$$RUNTIME_DIRECTORY" = "%t/test-exec_runtimedirectory-mode"'
Type=oneshot
RuntimeDirectory=test-exec_runtimedirectory-mode
RuntimeDirectoryMode=0750