Group: comp.os.linux.networking
From: Dave Uhring
Date: Wednesday, April 09, 2008 3:04 AM
Subject: Re: Problem with Debian Etch and NTP

On Wed, 09 Apr 2008 09:15:16 +0200, Àngel Català wrote:
> Dave Uhring escribió:

>> Stop ntpd, /etc/init.d/ntp stop
>>
>> Run ntpdate your_NTP_server just once, then 'date'. Does the correct
>> time appear?
>
> Yes, it works fine. I stop ntp daemon, then I call ntpdate with my NTP
> server and "date" answers me with the right time (also clock is set
> properly). So I think that configuration parameters are OK, but I can
> not understand what is failing.

Then hack that very ntpdate command into /etc/init.d/ntp. Be sure to put
the ntpdate command in the right place,

start)
log_daemon_msg "Starting NTP server" "ntpd"
if [ -z "$UGID" ]; then
log_failure_msg "user \"$RUNASUSER\".....
exit 1
fi
right here ===> /usr/sbin/ntpdate your_NTP_server
start-stop-daemon --start --quiet --oknodo....

It's silly to run 2 consecutive invocations of ntpdate since the intent
is to get your system time "close" to accurate before starting ntpd.

> By the way, everytime time is set properly (with manual restarting ntp
> daemon or by typing ntpdate), my screen becomes black with a big "X"
> symbol inside. I don't know if this detail is important.

That only shows that your screensaver works.

Safety Articles | Usenet Groups | Usenet News | Bluegrass