Bug 28415 - OpenNTPD не работает при старте с сбитым временем и одной записью в ntpd.conf
Summary: OpenNTPD не работает при старте с сбитым временем и одной записью в ntpd.conf
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: openntpd (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-22 13:09 MSK by Ivan Ovcherenko
Modified: 2013-01-22 13:09 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Ovcherenko 2013-01-22 13:09:50 MSK
# rpm -q openntpd
openntpd-3.9p1-alt12

# grep -v '^#' /etc/ntpd.conf | grep -v '^$'
server 10.1.0.2
# date --set='1 jan 1990'
Mon Jan  1 00:00:00 UTC 1990
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset 727691985.579069 delay 0.000478, next query 8s
set local clock to Tue Jan 22 08:39:56 UTC 2013 (offset 727691985.579069s)
^Cntp engine exiting
Terminating

При этом, если в ntpd.conf больше одной записи, или время не сбито, все работает нормально.

# grep -v '^#' /etc/ntpd.conf | grep -v '^$'
server 10.1.0.2
server 10.1.0.2
# date --set='1 jan 1990'
Mon Jan  1 00:00:00 UTC 1990
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset 727692626.531716 delay 0.000508, next query 6s
reply from 10.1.0.2: offset 727692626.531648 delay 0.000590, next query 9s
set local clock to Tue Jan 22 08:50:31 UTC 2013 (offset 727692626.531716s)
reply from 10.1.0.2: offset -0.000241 delay 0.000263, next query 6s
reply from 10.1.0.2: offset -0.000352 delay 0.000260, next query 5s
peer 10.1.0.2 now valid
reply from 10.1.0.2: offset -0.000438 delay 0.000264, next query 9s
^Cntp engine exiting
Terminating

или

# grep -v '^#' /etc/ntpd.conf | grep -v '^$'
server 10.1.0.2
# ntpdate 10.1.0.2
22 Jan 08:51:58 ntpdate[4603]: step time server 10.1.0.2 offset 727692714.553779 sec
# ntpd -d
ntp engine ready
reply from 10.1.0.2: offset -0.000122 delay 0.000250, next query 9s
reply from 10.1.0.2: offset -0.000257 delay 0.000279, next query 8s
reply from 10.1.0.2: offset -0.000405 delay 0.000261, next query 8s
peer 10.1.0.2 now valid
reply from 10.1.0.2: offset -0.000806 delay 0.000729, next query 9s
^Cntp engine exiting
Terminating