aboutsummaryrefslogtreecommitdiff
path: root/opt/tests/assert-running-service.sh
diff options
context:
space:
mode:
Diffstat (limited to 'opt/tests/assert-running-service.sh')
-rwxr-xr-xopt/tests/assert-running-service.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/opt/tests/assert-running-service.sh b/opt/tests/assert-running-service.sh
new file mode 100755
index 0000000..f4ac6b7
--- /dev/null
+++ b/opt/tests/assert-running-service.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -eu
+
+SERVICES='
+poweralertd
+clipmenu
+dunst
+mcron
+'
+
+for s in $SERVICES; do
+ LANG=en_US.UTF-8 herd status "$s" |
+ awk -vs="$s" 'NR == 2 && $3 != "started." {
+ printf "Home Shepherd service \"%s\" is not running.\n", s
+ exit 1
+ }'
+done