You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
371 B
14 lines
371 B
#!/bin/bash
|
|
|
|
|
|
|
|
running="$(docker-compose ps --services --filter "status=running")"
|
|
services="$(docker-compose ps --services)"
|
|
if [ "$running" != "$services" ]; then
|
|
# Bash specific
|
|
RUN=$(comm -13 <(sort <<<"$running") <(sort <<<"$services"))
|
|
echo "Following_services_are_not_running:"
|
|
echo "$RUN"
|
|
else
|
|
echo "All_services_are_running"
|
|
fi
|
|
|