diff --git a/crontab b/crontab index 1835ecc..c7b724f 100644 --- a/crontab +++ b/crontab @@ -1,2 +1,2 @@ */1 * * * * python3 -u /app/generateurModele.py - +*/1 * * * * touch /app/cron_exist.cron diff --git a/entrypoint.sh b/entrypoint.sh index a66ab0f..e462e08 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,4 +6,12 @@ echo "[INFO] LAUNCH CRON IN BACKGROUND" service cron start service cron status -sleep infinity +while true; do + if [ -f "/app/cron_exist.cron" ]; then + echo "YES CRON WORKS" + else + echo "NO CRON FOR THE MOMENT" + fi + + sleep 10 +done