mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
test/TEST-41: use a file in /tmp and reset the contents
If the test was run a second time from the same root, it would fail.
This commit is contained in:
parent
2b2eefee06
commit
0ac5dbf3ae
@ -19,9 +19,9 @@ if [[ "$(systemctl show one.service -p NRestarts --value)" -le 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TMP_FILE="/test-41-oneshot-restart-test"
|
TMP_FILE="/tmp/test-41-oneshot-restart-test"
|
||||||
|
|
||||||
touch $TMP_FILE
|
: >$TMP_FILE
|
||||||
|
|
||||||
# test two: make sure StartLimitBurst correctly limits the number of restarts
|
# test two: make sure StartLimitBurst correctly limits the number of restarts
|
||||||
# and restarts execution of the unit from the first ExecStart=
|
# and restarts execution of the unit from the first ExecStart=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user