]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-18-FAILUREACTION/testsuite.sh
test/TEST-18-FAILUREACTION: fix typo to actually run firstphase action
[thirdparty/systemd.git] / test / TEST-18-FAILUREACTION / testsuite.sh
1 #!/bin/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