From 52638e1df0a20268e2bc99b6a2e5bb66c268bb3d Mon Sep 17 00:00:00 2001 From: Timothe Jost <timothe.jost@wanadoo.fr> Date: Thu, 4 Jul 2024 13:52:56 +0200 Subject: [PATCH] editable sleep timeout --- cronjob.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cronjob.sh b/cronjob.sh index bf29121..e79323b 100644 --- a/cronjob.sh +++ b/cronjob.sh @@ -9,6 +9,8 @@ PIDFILE="/var/run/sensapex_proxy.pid" # Path to the log file LOGFILE="/var/log/sensapex_proxy.log" +SLEEP_TIME=5 + # Path to the task executable or script TASK="$SCRIPT_DIR/executeable/smcp1_proxy" @@ -43,5 +45,5 @@ while true; do echo "Task crashed. Restarting..." >> "$LOGFILE" start_task fi - sleep 10 + sleep $SLEEP_TIME done \ No newline at end of file -- GitLab