Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#45960 closed defect (invalid)

ntp @4.2.7p476_1 Apple's ntp still operates

Reported by: keybounce Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc: danielluke (Daniel J. Luke)
Port: ntp

Description

I have installed ntp @4.2.7p476_1, without problem, but the system ntpd still runs, not this new one.

keybounceMBP:Applications michael$ port installed ntp
The following ports are currently installed:
  ntp @4.2.7p476_1 (active)
keybounceMBP:Applications michael$ ntpdc --version
ntpdc 4.2.7p476@1.2483-o Tue Oct 28 18:43:09 UTC 2014 (1)
keybounceMBP:Applications michael$ ps ax | grep ntp
21433   ??  Ss     0:00.03 /usr/sbin/ntpd -c /private/etc/ntp-restrict.conf -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift
21766 s008  S+     0:00.00 grep ntp
keybounceMBP:Applications michael$ which ntpdc
/opt/local/sbin/ntpdc

Change History (6)

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

That sounds normal to me. MacPorts will not cause Apple-provided services to stop running, nor start its own services without your explicit instructions so to do.

comment:2 Changed 10 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

That's correct, MacPorts doesn't automatically disable (or enable) anything.

comment:3 Changed 10 years ago by keybounce

Alright, then how about putting in notes to tell how to switch from Apple's to MacPorts'?

bash-3.2# port notes ntp
ntp has no notes.
bash-3.2# port installed ntp
The following ports are currently installed:
  ntp @4.2.7p476_1 (active)
bash-3.2# 

comment:4 Changed 10 years ago by danielluke (Daniel J. Luke)

We don't provide that for all ports, but I'm not opposed to it (ie. patches welcome). Something like "don't have 'Set date and time automatically' checked in Date & Time of system preferences?" I believe instructions to run 'port load ntp' are already printed because of the startupitem generation (just not as notes).

comment:5 Changed 10 years ago by keybounce

That's helpful.

So, turning off set date and time automatically, and then trying to start it up

bash-3.2# port load ntp
bash-3.2# ntpdc -s
^C
bash-3.2# ps ax  | grep ntp
24189   ??  Ss     0:00.00 /opt/local/bin/daemondo --label=ntp --start-cmd /opt/local/sbin/ntpd -n -g -p /opt/local/var/run/ntpd.pid -f /opt/local/var/db/ntp.drift -c /opt/local/etc/ntp.conf ; --restart-netchange --pid=exec
24190   ??  S      0:00.01 /opt/local/sbin/ntpd -n -g -p /opt/local/var/run/ntpd.pid -f /opt/local/var/db/ntp.drift -c /opt/local/etc/ntp.conf
24191   ??  S      0:00.00 /opt/local/sbin/ntpd -n -g -p /opt/local/var/run/ntpd.pid -f /opt/local/var/db/ntp.drift -c /opt/local/etc/ntp.conf
24195 s008  S+     0:00.00 grep ntp
bash-3.2# ntpdc -s
localhost: timed out, nothing received
***Request timed out
bash-3.2# 

It shows that it started up, but I'm not getting anything.

comment:6 Changed 10 years ago by danielluke (Daniel J. Luke)

trac isn't for support - please post to the mailing list (and/or the ntp mailing list) for help. (note that the conf file provided is fairly restrictive to help mitigate DDOS amplification participation - I usually use 'ntpq -p' to check the status of my ntpd).

Note: See TracTickets for help on using tickets.