flatsixracer wrote:
Have you tried to restart the system/computer? I think the old ntpd process is a hanging state, because it's binary was replaced with the new ntpd.
Note: I rebooted all my systems after I applied the ntp 4.2.8 fix. On one of my computer I also had two ntpd's running, but that was fixed after the reboot.
ps -ef|grep -i ntpd
0 32782 1 0 0:01.93 ?? 0:02.86 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift
Of course I reboot just to be sure all "old" ntp related files are not "floating" around :-) But did you try the toggle test I described, i.e., toggle the ntpd off and on via Date&Time, watching system.log, and seeing how many ntpd processes are running at that point?
FWIW, here's the portion of the system.log I see when toggling ntpd back on. I captured this portion at a time when testing my own build of ntp 4.2.8 (and it also happens with 4.2.8p1-beta2) but using your build results in basically the same (not running on that test system at the moment):
Dec 26 14:32:45 xxxx _cvmsroot[700]: /usr/bin/sntp: illegal option -- v
Dec 26 14:32:45 xxxx _cvmsroot[700]: sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p1-beta1
Dec 26 14:32:45 xxxx _cvmsroot[700]: Usage: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
Dec 26 14:32:45 xxxx _cvmsroot[700]: [ hostname-or-IP ...]
Dec 26 14:32:45 xxxx _cvmsroot[700]: Try 'sntp --help' for more information.
Dec 26 14:32:45 xxxx ntpd[696]: ntpd 4.2.8p1-beta1@1.3265-o Thu Dec 25 11:28:35 UTC 2014 (1): Starting
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: ntpd 4.2.8p1-beta1@1.3265-o Thu Dec 25 11:28:35 UTC 2014 (1): Starting
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Command line: /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift
Dec 26 14:32:45 xxxx ntpd[696]: proto: fuzz beneath 0.077 usec
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: proto: precision = 1.000 usec (-20)
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: proto: fuzz beneath 0.077 usec
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen and drop on 0 v6wildcard [::]:123
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen normally on 2 lo0 [::1]:123
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen normally on 3 lo0 [fe80::1%1]:123
Dec 26 14:32:45 xxxx ntpd[696]: setsockopt IPV6_MULTICAST_IF 0 for fe80::1%1 fails: Can't assign requested address
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: setsockopt IPV6_MULTICAST_IF 0 for fe80::1%1 fails: Can't assign requested address
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen normally on 4 lo0 127.0.0.1:123
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen normally on 5 en0 [fe80::ea06:88ff:fecd:4ae9%4]:123
Dec 26 14:32:45 xxxx ntpd[696]: setsockopt IPV6_MULTICAST_IF 0 for fe80::ea06:88ff:fecd:4ae9%4 fails: Can't assign requested address
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: setsockopt IPV6_MULTICAST_IF 0 for fe80::ea06:88ff:fecd:4ae9%4 fails: Can't assign requested address
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listen normally on 6 en0 192.168.1.68:123
Dec 26 14:32:45 xxxx ntpd[696]: restrict default: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: Listening on routing socket on fd #27 for interface updates
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: restrict default: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx ntpd[696]: restrict ::: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: restrict default: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: restrict ::: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: restrict ::: KOD does nothing without LIMITED.
Dec 26 14:32:45 xxxx ntpd[696]: mlockall(): Function not implemented
Dec 26 14:32:45 xxxx org.ntp.ntpd[696]: 26 Dec 14:32:45 ntpd[696]: mlockall(): Function not implemented
Note, the obvious strange things here are the error complaining about -v not being a valid sntp argument. The -v isn't in a valid sntp argument with the sntp installed with these builds. But then that then begs the question on whether ntpd-wrapper needs changing since it looks to me that's where sntp -v is used.
The second thing is the error at the end about mlockall() not being implemented. That has me a little concerned.
Like I said I still don't know if this is specific to my 10.6.7 or a general "problem" with 4.2.8 on Snow Leopard. Do the toggle test and tell me what you see. Thanks in advance.
One final point. It may be true that 4.2.8 might do more logging than 4.2.4p4 so just because 4.2.4p4 is silent in the system.log is not an indications that some things may even be happening there. But one thing for sure, I never see two ntpd processes with 4.2.4p4 in the toggle test and I always do with 4.2.8.