From 9bd732897e84fa87428717208b1371f367211384 Mon Sep 17 00:00:00 2001 From: Giuseppe Nardiello Date: Tue, 17 Jan 2023 22:23:34 +0100 Subject: [PATCH] Better wait for crond --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index ea11ae7..b2e745b 100755 --- a/run.sh +++ b/run.sh @@ -34,6 +34,6 @@ crond -f -l 8 -L /mysql_backup.log & echo "Listening on crond, and wait..." -while : ; do sleep 1 ; done +tail -f /dev/null & wait $! echo "Script is shutted down." \ No newline at end of file