Re: [Dovecot] Time just moved backwards error even with ntp d

2008-01-19 Thread Gunter Ohrner
Am Samstag, 19. Januar 2008 schrieb Karsten Bräckelmann:
  2 Jan 19 10:31:55 gw ntpd[2112]: time reset -3600.221385 s
 Exactly one hour. Doesn't strike me as a coincidence...

Mh, sounds as if the system clock is set to local time, including DST 
changes, and the system clock had not yet been adjusted... I know why I 
use UTC for the system clock on my machines... ;)

Greetings,

  Gunter

-- 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Give a man a fire and he's warm for a day, but set fire to him and he's 
warm for the rest of his life.-- (Terry Pratchett, Jingo)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+   PGP-verschlüsselte Mails bevorzugt! +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


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


Re: [Dovecot] Time just moved backwards error even with ntp d

2008-01-19 Thread Gunter Ohrner
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! +
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


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