Skip to content

Commit

Permalink
Add more info logs and specific connection configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
maseabunikie committed Dec 19, 2023
1 parent 7a93bcb commit 7e8a5f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ if [ -z ${SKIP_TIMESYNC_WAIT} ] ||
[ "${SKIP_TIMESYNC_WAIT}" == "false" ] ||
[ ${SKIP_TIMESYNC_WAIT} -eq 0 ] ; then
# Start chrony client and wait for timesync before doing anything.
echo "INFO: chronyc in MicroXRCEAgent waiting for time sync with 5 minutes timeout."
# If timeout happens the script will give error and container exit with error.
# Docker daemon will restart the container.
echo "INFO: chronyc in MicroXRCEAgent waiting for time sync (3 minutes timeout)."
# waitsync [max-tries [max-correction [max-skew [interval]]]]
# if max-correction and max-skew are 0 then the value is not checked.
/usr/bin/chronyc waitsync 30 0 0 10
/usr/bin/chronyc -n -h 127.0.0.1 waitsync 18 0 0 10
echo "INFO: time sync achieved."
fi

if [ "$FASTRTPS_DEFAULT_PROFILES_FILE" != "" ]; then
Expand Down

0 comments on commit 7e8a5f4

Please sign in to comment.