From 309a63f0ffc59fbadfecbc6c2740fa13ae8e6b4f Mon Sep 17 00:00:00 2001 From: Marcel Clausen Date: Fri, 2 Feb 2024 21:23:41 +0100 Subject: [PATCH] make sure that the cron service is running. a under certain circumstances the cron service is in an unstable state after the initial load. in this case it is sufficient to reload the crontab configuration. --- scripts/checker.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checker.sh b/scripts/checker.sh index 53a2a6d..6fd121c 100755 --- a/scripts/checker.sh +++ b/scripts/checker.sh @@ -17,6 +17,8 @@ MAX_AGE=300 # max age in seconds should be the same interval as the cron setting # check if index sync status file exists if [[ ! -f "${LAST_SYNC}" ]]; then echo "index sync status file does not exist ${LAST_SYNC}" + # reload cron / restart in case it has not been activated correctly during initial container start + envsubst < docker-crontab | crontab exit 1 fi