]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-11.sh
Merge pull request #18863 from keszybz/cmdline-escaping
[thirdparty/systemd.git] / test / units / testsuite-11.sh
1 #!/usr/bin/env bash
2 set -eux
3 set -o pipefail
4
5 systemctl --no-block start fail-on-restart.service
6 active_state=$(systemctl show --value --property ActiveState fail-on-restart.service)
7 while [[ "$active_state" == "activating" || "$active_state" == "active" ]]; do
8 sleep 1
9 active_state=$(systemctl show --value --property ActiveState fail-on-restart.service)
10 done
11 systemctl is-failed fail-on-restart.service || exit 1
12 touch /testok