Skip to content

Commit 886b254

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 886b254

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 loops to end.
61+
# Using `xargs` because it might be running multiple times
62+
pgrep -f '/var/www/html/openWB/regel.sh$' | 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)