authelia/scripts/example/check-services.sh

15 lines
215 B
Bash
Raw Normal View History

#!/bin/bash
service_count=`docker ps -a | grep "Up " | wc -l`
2017-07-14 17:05:42 +00:00
if [ "${service_count}" -eq "5" ]
then
echo "Service are up and running."
exit 0
else
echo "Some services exited..."
docker ps -a
exit 1
fi