HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

test/test-execute/exec-privatetmp-disconnected.service

Git blob: 470e4828cfac894f3d040f8ad66228d8364351b6

Lines 1–13 of 13

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for PrivateTmp=disconnected
 
[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