mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
24acd4064e
This should, hopefully, catch issues like systemd/systemd#21671 automagically.
10 lines
241 B
Bash
10 lines
241 B
Bash
#!/bin/bash -eux
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
systemctl --failed --no-legend | tee /failed-services
|
|
|
|
# Exit with non-zero EC if the /failed-services file is not empty (we have -e set)
|
|
[[ ! -s /failed-services ]]
|
|
|
|
: >/testok
|