Systemd/test/test-execute/exec-read-only-path-succeed.service

9 lines
376 B
SYSTEMD
Raw Normal View History

[Service]
Type=oneshot
# This should work, as we explicitly disable the effect of ReadOnlyPaths=
2017-10-12 06:26:39 +02:00
ExecStart=+/bin/sh -c 'touch /tmp/thisisasimpletest'
# This should also work, as we do not disable the effect of ReadOnlyPaths= but invert the exit code
2017-10-12 06:26:39 +02:00
ExecStart=/bin/sh -x -c '! touch /tmp/thisisasimpletest'
ExecStart=+/bin/sh -c 'rm /tmp/thisisasimpletest'
ReadOnlyPaths=/tmp