FS#18469 - [ntp] replace ntpdate usage with ntp -q

Attached to Project: Arch Linux
Opened by Ray (ataraxia) - Friday, 26 February 2010, 03:07 GMT
Last edited by Kevin Piche (kpiche) - Thursday, 17 February 2011, 23:27 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

According to ntpdate's man page, it's considered deprecated, and should be replaced by ntpd -q. Given that, I suggest changing the initscripts Arch ships with ntp.

Advantages:
- we are in line with upstream's intentions
- there is only one place to list timeservers (ntp.conf) instead of two (ntp.conf and conf.d/ntp-client)

Disadvantages:
- the script should be renamed from "ntpdate" to "ntp-client" so that it continues to make sense, which will catch the many users not paying attention
- this new method seems to be a bit slower (10 seconds for ntpd -q vs 2 seconds for ntpdate)

The patch I'm attaching does rename the script, which makes it look longer than it really is. I also have the "-q" flag hard-coded into the script, as without it, there's no point in running it at all.
This task depends upon

Closed by  Kevin Piche (kpiche)
Thursday, 17 February 2011, 23:27 GMT
Reason for closing:  Implemented
Additional comments about closing:  Implemented in ntp 4.2.6.p3-1
Comment by Glenn Matthys (RedShift) - Monday, 15 November 2010, 12:15 GMT
What's the status of this issue?

Loading...