mirror of https://github.com/apache/kafka.git
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:
parent
758272267c
commit
1f5d05fe71
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue