From owner-freebsd-questions@FreeBSD.ORG Tue Apr 21 20:53:36 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E339410656C0 for ; Tue, 21 Apr 2009 20:53:36 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by mx1.freebsd.org (Postfix) with ESMTP id 427758FC23 for ; Tue, 21 Apr 2009 20:53:35 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by fxm11 with SMTP id 11so2757814fxm.43 for ; Tue, 21 Apr 2009 13:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=jxo4X1KNxHCNOkWa1cOc8GIxjGUWTqlKxr/5A/65Dgw=; b=TVsuESb61E65Kg/54vLjdMIyRK2O8alaywn+MEJDknGps9B5grb5qsYldPU/mdSU55 867SrKNbIkpVEsG1ePT8P9cjl76PDxi6K4DwIW9CaaZQOG7hecJ+veAQ3dolIjIlL3SF cCYFwfk+i21nMIL/lHHZiwaqU/TgC+XzZ3b28= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=OqQlJR3ndgEqcI98d+xM2W5ZPXyQeDPxFgRXO/0Vz0CZbQrM8pcPJ9MAVoTizXT+95 LPmJEoftcCBSfXzZhRpvjukEVGZwX7PFg4/0RLrRn2GtQjuKyUlfsCeRb8tMkBxEp463 zCwGlIWoRwz+HeYC5LZWpjUeYytl69+gnvMd8= Received: by 10.204.71.15 with SMTP id f15mr6909821bkj.42.1240347215143; Tue, 21 Apr 2009 13:53:35 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id c28sm201326fka.19.2009.04.21.13.53.33 (version=SSLv3 cipher=RC4-MD5); Tue, 21 Apr 2009 13:53:34 -0700 (PDT) Date: Tue, 21 Apr 2009 21:53:31 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090421215331.1621a96e@gumby.homeunix.com> In-Reply-To: <200904212023.14365.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <200904211106.01965.mel.flynn+fbsd.questions@mailing.thruhere.net> <200904211643.32448.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090421183133.4e0c414f@gumby.homeunix.com> <200904212023.14365.mel.flynn+fbsd.questions@mailing.thruhere.net> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Preventing ntpd from adjusting time (backwards) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2009 20:53:37 -0000 On Tue, 21 Apr 2009 20:23:14 +0200 Mel Flynn wrote: > On Tuesday 21 April 2009 19:31:33 RW wrote: > > On Tue, 21 Apr 2009 16:43:32 +0200 > > > > Mel Flynn wrote: > > > On Tuesday 21 April 2009 16:20:52 RW wrote: > > > > The bottom line though, is that ntpdate_enable=yes solves the > > > > problem entirely, since the real problem is not the step, but > > > > the fact that it happens in the background, and after a delay. > > > > > > Care to expand on that? Dovecot won't stop if root issues a date > > > command that sets time to the past, for example? > > > > I was assuming that since you're running ntpd you wouldn't be doing > > that. > > Right, then this works because ntpdate is started before dovecot in > rcorder, like Tim Judd said else in thread. ntpdate and ntpd normally start consecutively, both way before Dovecot. The difference is that ntpdate runs in the foreground, blocking the boot-process for a fraction of a second, but ntpd forks-off into the background and takes a lot longer over making its initial correction. If you're dead set against using ntpdate, you could use the preferred ntpd -gnq in it's place, at the expense of about 10 seconds of extra boot time.