Files
ioBroker.docker/amd64/scripts/healthcheck.sh
2020-07-27 21:46:15 +02:00

16 lines
331 B
Bash

#!/bin/bash
# Script checks health of running container
if [ "$(cat /opt/iobroker/.docker_config/.healthcheck)" == "starting" ] || [ "$(cat /opt/iobroker/.docker_config/.healthcheck)" == "maintenance" ]
then
exit 0
else
if [ "ps -fe|grep "[i]obroker.js-controller"|awk '{print $2}'" != "" ]
then
exit 0
fi
fi
exit 1