From owner-freebsd-ports@FreeBSD.ORG Sun Sep 12 08:09:49 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5FD41065670 for ; Sun, 12 Sep 2010 08:09:49 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id 3EBB38FC14 for ; Sun, 12 Sep 2010 08:09:48 +0000 (UTC) Received: (qmail invoked by alias); 12 Sep 2010 07:43:07 -0000 Received: from 85-127-158-115.dynamic.xdsl-line.inode.at (EHLO walrus.pepperland) [85.127.158.115] by mail.gmx.net (mp061) with SMTP; 12 Sep 2010 09:43:07 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX1+Sw4xrJvKSL69kptDBMc3eu04qNPQjyoTG8QLrrt +mUIA/h2wQWsJM From: Stefan Ehmann To: freebsd-ports@freebsd.org Date: Sun, 12 Sep 2010 09:43:05 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-RELEASE; KDE/4.5.1; i386; ; ) References: <20100911222902.bb57444a.nork@FreeBSD.org> <20100911173359.68d71af6@it.buh.tecnik93.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009120943.05310.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: Torfinn Ingolfsen Subject: Re: [ports/net/isc-dhcp*] Don't stop DHCP related daemons X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2010 08:09:50 -0000 On Saturday 11 September 2010 23:35:43 Torfinn Ingolfsen wrote: > Hi, > > On Sat, Sep 11, 2010 at 4:33 PM, Ion-Mihai Tetcu wrote: > > This 'stop the service before we install' seems to be a new fashion, > > usually unneeded/disruptive. > > IMO this should only happen when it's really needed, and with some big > > warning printed. > > And perhaps with a restart service attempt afterwards? (maybe interactive > as in "do you want me to restart the service y/n?") > Just my 0.02 euros. In general, the only safe method is to stop the service before deinstall and to start it after the upgrade. If a service must not be interrupted, it probably shouldn't be updated in first place. Quite some time ago one daemon always ceased to work for me after a portupgrade. I've added the following lines in my pkgtools.conf (taken from the sample file) and everything worked fine afterwards. BEFOREDEINSTALL = { # Automatically stop the service for each package that has a # rc script enabled '*' => proc { |origin| cmd_stop_rc(origin) }, } AFTERINSTALL = { # Automatically start the server for each package that # installs a rc file enabled '*' => proc { |origin| cmd_start_rc(origin) }, }