diff options
author | EuAndreh <eu@euandre.org> | 2022-11-24 19:35:01 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-11-24 19:36:23 -0300 |
commit | 3e0a27f97e206f7c1ee08f4e0d583914fa37d80d (patch) | |
tree | 20e68ddb7d985f9a1d56472aa413a400ec1ff6a5 /opt | |
parent | etc/guix/system.scm: Add working WIP version of local Postfix service (diff) | |
download | dotfiles-3e0a27f97e206f7c1ee08f4e0d583914fa37d80d.tar.gz dotfiles-3e0a27f97e206f7c1ee08f4e0d583914fa37d80d.tar.xz |
opt/tests/assert-running-service.sh: Add to "check" target
Diffstat (limited to 'opt')
-rwxr-xr-x | opt/tests/assert-running-service.sh | 17 |
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 |