On 5/24/2015 12:22 PM, Gordon Messmer wrote:
On 05/24/2015 11:41 AM, Kirk Bocek wrote:
to activate your selected daemon. I just used the new systemd commands,
thinking that would be enough. So I tried that and rebooted. Nope, same
problem:
chronyd and ntpd both use UDP port 123, so each will terminate the
other when it starts. If both are enabled, chronyd's unit file
indicates that it should start after ntpd, so it will always "win."
You probably have both enabled, so the system boots, starts ntpd, then
starts chronyd which terminates ntpd.
Disable chronyd.
Yes, indeedy.
$systemctl status chronyd
chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled)
Active: inactive (dead) since Sun 2015-05-24 11:39:21 PDT; 3h 31min ago
Process: 845 ExecStartPost=/usr/libexec/chrony-helper
add-dhclient-servers (code=exited, status=0/SUCCESS)
Process: 808 ExecStart=/usr/sbin/chronyd -u chrony $OPTIONS
(code=exited, status=0/SUCCESS)
Main PID: 814 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/chronyd.service
May 24 11:35:53 cobalt chronyd[814]: NTP packet received from
unauthorised host 10.0.0.1 port 123
...
So:
$rpm -e --nodeps chrony
chrony has dependencies with anaconda and initial-setup. Reboot, and:
$systemctl status ntpd
ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
Active: active (running) since Sun 2015-05-24 15:15:42 PDT; 3min 1s ago
Process: 847 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS
(code=exited, status=0/SUCCESS)
Main PID: 868 (ntpd)
CGroup: /system.slice/ntpd.service
ââ868 /usr/sbin/ntpd -u ntp:ntp -g
May 24 15:15:42 cobalt ntpd[868]: Failed to join 224.0.1.1 socket to
multicast group 224.0.1.1
May 24 15:15:42 cobalt ntpd[868]: 0.0.0.0 c016 06 restart
May 24 15:15:42 cobalt ntpd[868]: 0.0.0.0 c012 02 freq_set kernel 17.232 PPM
May 24 15:15:43 cobalt ntpd[868]: 0.0.0.0 c515 05 clock_sync
May 24 15:15:49 cobalt ntpd[868]: Listen normally on 5 enp4s0f0
fe80::ec4:7aff:fe34:1dcc UDP 123
May 24 15:15:49 cobalt ntpd[868]: new interface(s) found: waking up resolver
May 24 15:15:51 cobalt ntpd[868]: Listen normally on 6 enp4s0f0
10.0.0.160 UDP 123
May 24 15:15:51 cobalt ntpd[868]: io_setbclient: Opened broadcast client
on interface #6 enp4s0f0
May 24 15:15:51 cobalt ntpd[868]: new interface(s) found: waking up resolver
May 24 15:16:47 cobalt ntpd[868]: 0.0.0.0 0613 03 spike_detect +0.416806 s
Multicast error, but no big deal. ntpq -p is reporting correctly on the
broadcast servers on my network. Also, I suppose I could have just
disabled chrony instead of removing it.
I had no idea about chrony and no idea it was installed *and activated*
by default. So much new stuff to learn in 7.
Thank you Frank and Gordon.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos