Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95390 - ntp-4.2.0.20040617-r2 init.d, conf.d changes for ntpd and ntpdate
Summary: ntp-4.2.0.20040617-r2 init.d, conf.d changes for ntpd and ntpdate
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-07 15:21 UTC by r4v5
Modified: 2005-06-07 15:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description r4v5 2005-06-07 15:21:23 UTC
I installed the abovementioned version of NTP, and noticed some peculiarities.
1) ntp-client doesn't start because /etc/conf.d/ntp-client's NTPCLIENT_OPTS has
-Q in it, which is apparently not available in ntpdate anymore.
2) in /etc/init.d/ntpd's start(), it tries to call /usr/bin/ntpd, but ntpd is
located in /usr/sbin/ntpd.

3) As a solution for point 1:
I saw an old bug (bug #21527) that mentioned that ntpdate was still being used
by ntp-client "until a solution that works" came up.

On my system, I have edited /etc/conf.d/ntp-client and set NTPCLIENT_CMD="ntpd"
and NTPCLIENT_OPTS="-gq"; with this, it corrected a clock offset of one hour
without doing the typical "death by failed sanity check."

If you are using the ntpd program as a substitute for ntpdate, you must specify
not just -q (quit after setting the time once) but also -g (don't quit if the
time delta is too large); Otherwise, it exits from an excessively incorrect time.
I would like some feedback as to whether or not this is an acceptable solution;
it would solve the 'ntpdate is deprecated' issue, if it works.

Reproducible: Always
Steps to Reproduce:
1. run /etc/init.d/ntp-client start
2. run /etc/init.d/ntpd start

Actual Results:  
1)
 * Setting clock via the NTP client 'ntpdate' ...
ntpdate: unknown option -Q
usage: ntpdate [-46bBdqsuv] [-a key#] [-e delay] [-k file] [-p samples] [-o
version#] [-r rate] [-t timeo] server ...
 * Failed to set clock                                                    [ !! ]

2)
 * Starting ntpd ...
/etc/init.d/ntpd: line 30: /usr/bin/ntpd: No such file or directory
 * Failed to start ntpd                                                   [ !! ]


Expected Results:  
ntp-client should do a one-off adjustment of the clock to an external time source.
ntpd should run.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-07 15:35:13 UTC
1/ No, it does not have -Q option, means you did not run etc-update (properly)
2/ ditto