Skip to contentSkip to conversation

ntp: comment out the invalid server

PATCH Applied [email protected] 2 participants 2 messages Nov 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntp: comment out the invalid server

From: Roy Li <[email protected]>

When ntpd starts, it will create a daemon to connect this invalid server, and fail, then ntpd will create other daemon to connect the local-only (127.127.1.0) server.

The users should be aware that they need to configure the correct ntp servers, a invalid server will lead to a redundant daemon, so it is better to comment this example server to wait user to configure

---
 meta-networking/recipes-support/ntp/files/ntp.conf |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-networking/recipes-support/ntp/files/ntp.conf +3 -1
index a9cc838..e26b615 100644
@@ -5,7 +5,9 @@ driftfile /etc/ntp.drift
 # This obtains a random server which will be close
 # (in IP terms) to the machine.  Add other servers
 # as required, or change this.
-server time.server.example.com
+# 
+# server time.server.example.com
+#
 # Using local hardware clock as fallback
 # Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
 server 127.127.1.0
Signature · 1 line
1.7.10.4
#1 lore raw

Merged, thanks.
-J.

Quoted 30 lines · [[oe] [PATCH meta-networking] ntp: comment out the invalid server] On 13.11.29…

From: Roy Li <[email protected]>

When ntpd starts, it will create a daemon to connect this invalid server, and fail, then ntpd will create other daemon to connect the local-only (127.127.1.0) server.

The users should be aware that they need to configure the correct ntp servers, a invalid server will lead to a redundant daemon, so it is better to comment this example server to wait user to configure

---
 meta-networking/recipes-support/ntp/files/ntp.conf |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-networking/recipes-support/ntp/files/ntp.conf +3 -1
index a9cc838..e26b615 100644
@@ -5,7 +5,9 @@ driftfile /etc/ntp.drift
 # This obtains a random server which will be close
 # (in IP terms) to the machine.  Add other servers
 # as required, or change this.
-server time.server.example.com
+# 
+# server time.server.example.com
+#
 # Using local hardware clock as fallback
 # Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
 server 127.127.1.0
Signature · 2 lines
-Joe MacDonald.
:wq