Skip to content

Commit d1a2c0a

Browse files
committed
wait for regulation loop to end instead of waiting for 15seconds in order to (possibly) speed up the script
1 parent 130dca3 commit d1a2c0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runs/update.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ for i in $(seq 4 8); do
5757
fi
5858
done
5959

60-
sleep 15
60+
# Wait for regulation loop(s) and cron jobs to end, but with timeout in case a script hangs
61+
pgrep -f "$OPENWBBASEDIR/(regel\\.sh|runs/cron5min\\.sh|runs/cronnightly\\.sh)$" | \
62+
timeout 15 xargs -n1 -I'{}' tail -f --pid="{}" /dev/null
6163

6264
# backup some files before fetching new release
6365
# module soc_eq

0 commit comments

Comments
 (0)