22 lines
363 B
Bash
22 lines
363 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
# shellcheck disable=SC1091
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
if has_full_systemd_suite; then
|
|
status_systemd_suite
|
|
exit $?
|
|
fi
|
|
|
|
all_ok=0
|
|
name=""
|
|
for name in $(suite_service_names); do
|
|
if ! status_local_service "$name"; then
|
|
all_ok=1
|
|
fi
|
|
done
|
|
|
|
exit "$all_ok"
|