KAFKA-2726: Fix port collision between ntpdate and ntp daemon

gwenshap Can you take a quick look? I have verified the change allows successful `vagrant provision` even with ntp daemon already running on the vm.

Author: Geoff Anderson <geoff@confluent.io>

Reviewers: Guozhang Wang

Closes #407 from granders/KAFKA-2726-ntp-port-collision
This commit is contained in:
Geoff Anderson 2015-11-02 14:14:38 -08:00 committed by Guozhang Wang
parent 758272267c
commit 1f5d05fe71
1 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@ fi
chmod a+rwx /mnt
# Run ntpdate once to sync to ntp servers
ntpdate pool.ntp.org
# use -u option to avoid port collision in case ntp daemon is already running
ntpdate -u pool.ntp.org
# Install ntp daemon - it will automatically start on boot
apt-get -y install ntp