From owner-cvs-all@FreeBSD.ORG Tue Oct 9 00:03:13 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22ACF16A4D7 for ; Tue, 9 Oct 2007 00:03:13 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id B4AF013C4B6 for ; Tue, 9 Oct 2007 00:03:12 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 16677 invoked by uid 399); 9 Oct 2007 00:03:11 -0000 Received: from localhost (HELO slave.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 9 Oct 2007 00:03:11 -0000 X-Originating-IP: 127.0.0.1 Date: Mon, 8 Oct 2007 17:03:08 -0700 (PDT) From: Doug Barton To: Christian Weisgerber In-Reply-To: <20071008140649.GA79893@kemoauc.mips.inka.de> Message-ID: References: <200710021706.l92H65ZQ090472@repoman.freebsd.org> <20071008140649.GA79893@kemoauc.mips.inka.de> X-message-flag: Outlook -- Not just for spreading viruses anymore! X-OpenPGP-Key-ID: 0xD5B2F0FB Organization: http://www.FreeBSD.org/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-ports@FreeBSD.org, ports@logvinov.com, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/net/openntpd Makefile pkg-plist ports/net/openntpd/files openntpd.in openntpd.sh X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2007 00:03:13 -0000 On Mon, 8 Oct 2007, Christian Weisgerber wrote: > Doug Barton: > >>> http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/net/openntpd/files/openntpd.in >> >> Thanks for converting this to the new style. Quick questions, why is >> BEFORE: LOGIN in there? > > I think I simply copied this from /etc/rc.d/ntpd. D'oh! I suppose there is still a lot of cleanup to do. :-/ > The question where to start ntpd in the startup sequence is tricky. > If people set openntpd's -s flag ("set the time immediately at startup > if the local clock is off by more than 180 seconds"), then it should > be started as early as possible, before other daemons and certainly > before users log in. If people don't set -s, then openntpd can > start up late. Is it possible to do two rc.d scripts for these different features? The way it is now, we have ntpdate which is run right after named (i.e., pretty early) and ntpd run after DAEMON but before LOGIN. The former is a compromise, I would like to run ntpdate (or the [open]ntpd related equivalent) much earlier, but there are some who think that requiring users to (potentially) have IP addresses in their conf files is not a good idea. I think that we run ntpd too late, but no one has ever really complained about it, so I'm loathe to change it. My preference would be that you create two rc.d scripts as suggested above, and put the same REQUIRE lines as the ones in the base, and put BEFORE ntpdate and ntpd respectively. That should put them in pretty much the same order as the ones in the base are now. If you need help with that, I'd be glad to give it a look. >> Also you should probably add the shutdown KEYWORD. > > What for? There is no particular shutdown action to be taken, no > database to sync. Fair enough. I have a plan to add the shutdown KEYWORD to the existing scripts in the base that start persistent services with the idea in mind of getting a more "orderly" shutdown process. If you don't feel that there is value in this for your application, no worries. Doug -- This .signature sanitized for your protection