Skip to content

Commit

Permalink
[TEMP] Wait till systemd-journald is running
Browse files Browse the repository at this point in the history
  • Loading branch information
t-woerner committed Oct 17, 2024
1 parent 979486b commit 8e8d388
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions utils/setup_test_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,20 @@ shift
prepare_container "${scenario}" "${IMAGE_TAG}"
start_container "${scenario}"

log info "= Waiting till systemd-journald is running ="
max=20
wait=2
count=0
while ! podman exec "${scenario}" ps -x | grep -q "systemd-journald"
do
if [ $count -ge $max ]; then
die "Timeout: systemd-journald is not starting up"
fi
count=$((count+1))
log info "Waiting ${wait} seconds .."
sleep ${wait}
done

# wait for FreeIPA services to be available (usually ~45 seconds)
log info "Wait for container to be initialized."
wait=15
Expand Down

0 comments on commit 8e8d388

Please sign in to comment.