Debian Codegraph @

test/testdata/test-execute/exec-readonlypaths-simple.service

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for ReadOnlyPaths=
4
5 [Service]
6 Type=oneshot
7 # This should work, as we explicitly disable the effect of ReadOnlyPaths=
8 ExecStart=+bash -c 'touch /tmp/thisisasimpletest'
9 # This should also work, as we do not disable the effect of ReadOnlyPaths= but invert the exit code
10 ExecStart=bash -x -c '! touch /tmp/thisisasimpletest'
11 ExecStart=+bash -c 'rm /tmp/thisisasimpletest'
12 ReadOnlyPaths=/tmp