HALF ECHO LEARN / REFERENCE COLLECTION
v262.2test/test-execute/exec-privatetmp-disconnected-wants-mounts-for-var.service
Git blob: 66337df79af7f3016cc784d8febf953ac6310781
Lines 1–15 of 15
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=disconnected with WantsMountsFor=/var/
DefaultDependencies=no
WantsMountsFor=/var/
[Service]
ExecStart=bash -x -c 'test ! -f /tmp/test-exec_privatetmp'
ExecStart=touch /tmp/test-exec_privatetmp_disconnected
ExecStart=touch /var/tmp/test-exec_privatetmp_disconnected
ExecStart=bash -x -c 'test x$$TMPDIR = x'
Type=oneshot
ProtectSystem=strict
PrivateTmp=disconnected