Skip to content
Snippets Groups Projects
Commit a90c9607 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task SW-564: Allow 20s for pid file to appear instead of 1s

parent d3996f62
No related branches found
No related tags found
No related merge requests found
......@@ -67,8 +67,13 @@ for cluster in CEP4 DRAGNET; do # all in cobalt_functions.sh as used by runObse
# PID file is created by runObservation.sh, which is started in the background. Although the PID file
# is created almost immediately, we may be too fast if we check without waiting.
# Used 'nice -n 5' to dramatically increase the chance that we check before the pid file is removed again.
# PID file must appear within 20s
TIMEOUT=20
while [ "$TIMEOUT" -gt 0 -a ! -e $LOFARROOT/var/run/rtcp-1000.pid ]
do
sleep 1
TIMEOUT=$((TIMEOUT - 1))
done
[ -e $LOFARROOT/var/run/rtcp-1000.pid ] || error "Found no $LOFARROOT/var/run/rtcp-1000.pid"
# PID file must be gone after 20s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment