test/testdata/test-execute/exec-privatetmp-disconnected-wants-mounts-for-var.service
raw| 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 | [Unit] |
| 3 | Description=Test for PrivateTmp=disconnected with WantsMountsFor=/var/ |
| 4 | DefaultDependencies=no |
| 5 | WantsMountsFor=/var/ |
| 6 | |
| 7 | [Service] |
| 8 | ExecStart=bash -x -c 'test ! -f /tmp/test-exec_privatetmp' |
| 9 | ExecStart=touch /tmp/test-exec_privatetmp_disconnected |
| 10 | ExecStart=touch /var/tmp/test-exec_privatetmp_disconnected |
| 11 | ExecStart=bash -x -c 'test x$$TMPDIR = x' |
| 12 | Type=oneshot |
| 13 | ProtectSystem=strict |
| 14 | PrivateTmp=disconnected |