Hi!

Am Samstag, 19. Januar 2008 schrieb Luigi Rosa:
> > How about first starting ntpd, forcing a time-update using ntpdate
> > even before starting ntpd, and delaying the dovecot start until after
> > the time has been adjusted?
> The problem is tha you cannot tell when the time is adjusted because
> it take some time to the ntp protocol to synchronize.

That's why I suggested to use ntpdate to force the correct time to be set 
before ntpd even starts and the ntp init script returns.

Admittedly, this won't work if you have no network connectivity during 
boot up, but if you have, this paticular problem is most likely solved.

ntpdate optionally can be given a timeout value and indicates success or 
failure via its return code so that a calling script might initiate 
appropriate measures.

Greetings,

  Gunter

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
"You're dead," he said. Keli waited. She couldn't think of any suitable 
reply. "I'm not" lacked a certain style, while "Is it serious?" seemed 
somehow too frivolous.        -- Princess Keli in trouble           
(Terry Pratchett, Mort)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+                   PGP-verschlüsselte Mails bevorzugt!                 +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to