From 8a1d7c0868df0622db39acc0a12b8b3349db1006 Mon Sep 17 00:00:00 2001 From: Adrian Cooke <105147+agcooke@users.noreply.github.com> Date: Tue, 8 Jan 2019 20:22:23 +0200 Subject: [PATCH] Use chrony for time and make sure it is enabled on startup. (#130) From https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html --- install-worker.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-worker.sh b/install-worker.sh index c6afb45d1..affce5ebf 100644 --- a/install-worker.sh +++ b/install-worker.sh @@ -17,16 +17,17 @@ sudo yum update -y # Install necessary packages sudo yum install -y \ aws-cfn-bootstrap \ + chrony \ conntrack \ curl \ jq \ nfs-utils \ - ntp \ socat \ unzip \ wget -sudo systemctl enable ntpd +# Make sure Amazon Time Sync Service starts on boot. +sudo chkconfig chronyd on curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" sudo python get-pip.py