]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-18.sh
Merge pull request #19226 from keszybz/reenable-maybe-unitialized-warning
[thirdparty/systemd.git] / test / units / testsuite-18.sh
1 #!/usr/bin/env bash
2 set -ex
3 set -o pipefail
4
5 systemd-run --wait -p FailureAction=poweroff true
6 ! systemd-run --wait -p SuccessAction=poweroff false
7
8 if ! test -f /firstphase ; then
9 echo OK > /firstphase
10 systemd-run --wait -p SuccessAction=reboot true
11 else
12 echo OK > /testok
13 systemd-run --wait -p FailureAction=poweroff false
14 fi
15
16 sleep infinity