From owner-freebsd-ports@FreeBSD.ORG Fri Sep 16 19:42:09 2011 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 5958D106564A; Fri, 16 Sep 2011 19:42:09 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 10A128FC0A; Fri, 16 Sep 2011 19:42:08 +0000 (UTC) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 9424528424; Fri, 16 Sep 2011 21:42:07 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id EFF7328423; Fri, 16 Sep 2011 21:41:54 +0200 (CEST) Message-ID: <4E73A681.6020909@quip.cz> Date: Fri, 16 Sep 2011 21:41:53 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 Lightning/1.0b1 SeaMonkey/2.0.14 MIME-Version: 1.0 To: lev@FreeBSD.org References: <4E7392D6.4060309@wasikowski.net> <193113479.20110916223415@serebryakov.spb.ru> In-Reply-To: <193113479.20110916223415@serebryakov.spb.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Eric , Matthias Andree , =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= , ports-list freebsd Subject: Re: Re-starting daemons across upgrades? (was: Thank you (for making the ports less boring).) 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: Fri, 16 Sep 2011 19:42:09 -0000 Lev Serebryakov wrote: > Hello, Łukasz. > You wrote 16 сентября 2011 г., 22:17:58: > >> were not recompiled). Updating ports should never turn off or restart >> service - thats my $0.02. > I agree with that. It is not difficult to REstart service by hands. > > But stopping service is another story. Many ports/packages stop > service on dinstall/pkg_delete, and as result, if port with service > are upgraded in the middle of large upgrade session (and it is not > always possible to upgrade services SEPARATELY, due to dependences), > here is large window when old service is stopped, but new cannot be > started yet. From my point of view, it is better to not stop the service by deinstall phase, if it is not started by install. If I do portmaster -a, deinstall of MySQL stops the mysql daemon and all dependent services are unavailable for a very long time - until all other packages are upgraded and administrator starts MySQL by hand. It can be hours. But I like the idea based on portupgrade AFTERINSTALL / (AFTERUPGRADE) - some kind of custom hooks, where user can define actions for specific packages / services. It can be restart in some cases, or write something to log, or send an e-mail, or print some user defined warning text about dependencies needed to be upgraded / restarted... and so on. Miroslav Lachman