summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-read-only-path-succeed.service
blob: b54d48f281b7125fbb50ce801961c8409b73810f (plain)
1
2
3
4
5
6
7
8
[Service]
Type=oneshot
# This should work, as we explicitly disable the effect of ReadOnlyPaths=
ExecStart=+/bin/touch /tmp/thisisasimpletest
# This should also work, as we do not disable the effect of ReadOnlyPaths= but invert the exit code
ExecStart=/bin/sh -x -c '! /bin/touch /tmp/thisisasimpletest'
ExecStart=+/bin/rm /tmp/thisisasimpletest
ReadOnlyPaths=/tmp