mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-04 07:03:02 +02:00
16 lines
331 B
Bash
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
|