aboutsummaryrefslogtreecommitdiff
path: root/opt/tests/assert-running-service.sh
blob: c4c5851ae333dbfeec04a112a52fd7a9c75591dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -eu

SERVICES='
poweralertd
clipmenu
dunst
mcron
'

unset LC_ALL
for s in $SERVICES; do
	LANG=en_US.UTF-8 herd status "$s" |
		awk -vs="$s" 'NR == 2 && $3 != "running" {
			printf "Home Shepherd service \"%s\" is not running.\n", s
			exit 1
		}'
done