mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 10:41:32 +00:00
remove unnecessary check for setup process
autoheal was copied from kenya-emr and was still checking for a setup.pid file and process. This won't do any harm but also does not add value.
This commit is contained in:
@@ -18,10 +18,6 @@ trap exit INT
|
||||
# run at fixed interval, checking for and restarting any service marked as 'unhealthy'
|
||||
pushd $LOCATION > /dev/null
|
||||
while [ 1 ]; do
|
||||
|
||||
# if setup is not running, make sure containers are active and running
|
||||
if ! kill -0 $(cat ${LOCATION}/setup.pid 2> /dev/null) 2> /dev/null; then
|
||||
|
||||
# get current state (running or not) and status (healthy, unhealthy, etc)
|
||||
app_state=$(docker compose ps --format '{{.State}}' streamline-emr)
|
||||
app_status=$(docker compose ps --format '{{.Status}}' streamline-emr)
|
||||
@@ -37,7 +33,6 @@ pushd $LOCATION > /dev/null
|
||||
echo "Container not running. Starting 'streamline-emr'"
|
||||
docker compose up -d streamline-emr
|
||||
fi
|
||||
fi
|
||||
|
||||
# wait a little while before checking again
|
||||
sleep $INTERVAL
|
||||
|
||||
Reference in New Issue
Block a user