health-check: mention failed systemd services
This commit is contained in:
parent
83404f6769
commit
2d07ff966b
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl -p dig -p iputils -p lftp
|
||||
#!nix-shell -i bash -p curl -p dig -p iputils -p lftp -p openssh
|
||||
|
||||
echo "this script will check that uninsane.org is baseline operational"
|
||||
echo "it doesn't check all services, just the most critical ones"
|
||||
|
@ -45,6 +45,10 @@ check "git.uninsane.org" git ls-remote origin --quiet
|
|||
|
||||
check "ftp://uninsane.org" lftpget ftp://uninsane.org/README.md && rm README.md
|
||||
|
||||
echo ""
|
||||
echo "systemctl --failed:"
|
||||
ssh uninsane.org systemctl -q --failed
|
||||
|
||||
echo ""
|
||||
if [ $last_error -eq 0 ]; then
|
||||
echo "SUCCESS"
|
||||
|
|
Loading…
Reference in New Issue
Block a user