From a5f83699ccdcc6d3b5384ece827a90b845fa992b Mon Sep 17 00:00:00 2001 From: Vitali Khlebko Date: Tue, 18 Oct 2022 00:17:33 -0400 Subject: [PATCH] Execute supercronic as PID 1 process So, SIGINT can be passed to supercronic instead of entrypoint script shell. Providing quick container restart --- scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index b13ec3a..0fccb1b 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -53,4 +53,4 @@ configure_timezone configure_cron # foreground run crond -supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}" +exec supercronic -passthrough-logs -quiet "${CRON_CONFIG_FILE}"