mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
23 lines
294 B
Bash
Executable File
23 lines
294 B
Bash
Executable File
#!/bin/bash
|
|
set -o pipefail
|
|
|
|
function ok()
|
|
{
|
|
echo " OK"
|
|
}
|
|
|
|
function fail()
|
|
{
|
|
echo " FAIL"
|
|
exit 1
|
|
}
|
|
|
|
echo "Checking whether all services are running..."
|
|
services=`sv status /etc/service/*`
|
|
status=$?
|
|
if [[ "$status" != 0 || "$services" = "" || "$services" =~ down ]]; then
|
|
fail
|
|
else
|
|
ok
|
|
fi
|