diff --git a/docker/files/scripts/start.sh b/docker/files/scripts/start.sh index 5160397bad..aee56ac8c0 100755 --- a/docker/files/scripts/start.sh +++ b/docker/files/scripts/start.sh @@ -68,9 +68,9 @@ curl -k http://"$SITE_NAME"/API/SystemAPI?method=runPendingDatabaseUpdates # Start Cron if [ "$ASPEN_CRON" == "yes" ]; then - service cron start php /usr/local/aspen-discovery/code/web/cron/checkBackgroundProcesses.php "$SITE_NAME" & + cron -f -L 2 +else +/bin/bash -c "trap : TERM INT; sleep infinity & wait" fi -# Infinite loop -/bin/bash -c "trap : TERM INT; sleep infinity & wait" \ No newline at end of file