From owner-freebsd-ports@FreeBSD.ORG Wed Nov 10 11:06:51 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7B4F16A4CE for ; Wed, 10 Nov 2004 11:06:51 +0000 (GMT) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25C3643D2F for ; Wed, 10 Nov 2004 11:06:51 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd11.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1CRqIp-0007qD-03; Wed, 10 Nov 2004 12:06:15 +0100 Received: from Andro-Beta.Leidinger.net (VrzSZqZEYedMqfZNrtG1sQyY-aupYlqptNYdqTZBrmHVNF9568be8M@[217.229.213.137]) by fmrl11.sul.t-online.com with esmtp id 1CRqIb-21HyaG0; Wed, 10 Nov 2004 12:06:01 +0100 Received: from Andro-Beta.Leidinger.net (localhost [127.0.0.1]) iAAB6AFb008683; Wed, 10 Nov 2004 12:06:10 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: (from www@localhost)iAAB6ADO008682; Wed, 10 Nov 2004 12:06:10 +0100 (CET) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: Andro-Beta.Leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from 141.113.101.31 ([141.113.101.31]) by netchild.homeip.net (IMP) with HTTP for ; Wed, 10 Nov 2004 12:06:10 +0100 Message-ID: <1100084770.4191f6222333d@netchild.homeip.net> Date: Wed, 10 Nov 2004 12:06:10 +0100 From: Alexander@Leidinger.net To: Volker Stolz References: <20041109040834.GA8940@k7.mavetju> <20041109080124.GA59253@i2.informatik.rwth-aachen.de> In-Reply-To: <20041109080124.GA59253@i2.informatik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 / FreeBSD-4.10 X-Originating-IP: 141.113.101.31 X-ID: VrzSZqZEYedMqfZNrtG1sQyY-aupYlqptNYdqTZBrmHVNF9568be8M@t-dialin.net X-TOI-MSGID: 6ab212a1-bfd4-4b2a-88f8-829aff8f1256 cc: Edwin Groothuis cc: freebsd-ports@freebsd.org Subject: Re: rc.subr extensions X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 11:06:52 -0000 Zitat von Volker Stolz : > In gmane.os.freebsd.devel.ports, you wrote: > > - define RC_FILES, which contain a list of all the files to be > > stored in /usr/local/etc/rc.d. This file may contain macros like > > %%LOCALBASE%% and %%RC_SUBR%%. > > Excellent! While we discussed this at the ports BOF at EuroBSDCon, it > was suggested to have a knob for deciding whether to run > "${RC_SCRIPT} restart" on updating a port -- it has to be configurable > since the administrator might want fine-grained control. Any chance of > adding this as sugar on top? Do we really want to do that? Personally I agree with "stop" before the deinstall (in some cases...), but not with a "restart". I may want to make changes of the configuration in between, or I need to make changes because the application has an incompatible change in the configuration between versions. Ideally the administrator knows best what to do at an update, so he should explicitly start, stop or restart a service. Bye, Alexander.