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