Skip to content
Snippets Groups Projects
Commit 52638e1d authored by Timothe Jost's avatar Timothe Jost
Browse files

editable sleep timeout

parent d72a52a4
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ PIDFILE="/var/run/sensapex_proxy.pid" ...@@ -9,6 +9,8 @@ PIDFILE="/var/run/sensapex_proxy.pid"
# Path to the log file # Path to the log file
LOGFILE="/var/log/sensapex_proxy.log" LOGFILE="/var/log/sensapex_proxy.log"
SLEEP_TIME=5
# Path to the task executable or script # Path to the task executable or script
TASK="$SCRIPT_DIR/executeable/smcp1_proxy" TASK="$SCRIPT_DIR/executeable/smcp1_proxy"
...@@ -43,5 +45,5 @@ while true; do ...@@ -43,5 +45,5 @@ while true; do
echo "Task crashed. Restarting..." >> "$LOGFILE" echo "Task crashed. Restarting..." >> "$LOGFILE"
start_task start_task
fi fi
sleep 10 sleep $SLEEP_TIME
done done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment