From owner-freebsd-ports@FreeBSD.ORG Fri Sep 16 18:25:41 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 28EC8106564A; Fri, 16 Sep 2011 18:25:41 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id D84308FC0C; Fri, 16 Sep 2011 18:25:40 +0000 (UTC) Received: by iadk27 with SMTP id k27so4179775iad.13 for ; Fri, 16 Sep 2011 11:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=aLXQpnXEx5/83U110ck3z3JJjxFHGXkzqqFuPoWuyCs=; b=fYORaBHvHLH7RBvaEk29hZeOm1R00EEOCQ7aT1KZgYbl2NJzH/X4wfx+ajqhKj7kZu Lt9XX1WKi+ZJQiU0wOHeOLGuMB47xC1Yah6rHiLjnjCXOOpSRuCyv+U/1cCBtqdxIi93 h97+gsBOXcU8cNutf9xwvAqakw1TqKKYrQubk= Received: by 10.231.64.83 with SMTP id d19mr4463757ibi.8.1316197540156; Fri, 16 Sep 2011 11:25:40 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.35.194 with HTTP; Fri, 16 Sep 2011 11:25:10 -0700 (PDT) In-Reply-To: <4E7392D6.4060309@wasikowski.net> References: <4E7392D6.4060309@wasikowski.net> From: Chris Rees Date: Fri, 16 Sep 2011 19:25:10 +0100 X-Google-Sender-Auth: xf9QGgCXawXCgYKpPVTy2-Fcisk Message-ID: To: =?ISO-8859-2?Q?=A3ukasz_W=B1sikowski?= Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: lev@freebsd.org, Matthias Andree , Eric , 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 18:25:41 -0000 2011/9/16 =A3ukasz W=B1sikowski : > W dniu 2011-09-16 18:17, Eric pisze: > >> Just for ref regarding (c) on the portupgrade wiki page[1] it mentions u= sing >> AFTERINSTALL in pkgtools.conf for doing automatic stop/start/restart. > > I'm using it for a long time on my personal box and it's not that great. > After some updates there is need to prepare the daemon - adjust > configuration for example. Automatic restart will do much harm in that > case. Another example: update when there's apache and php in new > versions, system has also eaccelerator and some pecl's installed. If php > was updated before apache, then apache restart via AFTERINSTALL will > leave you with not working www server (because eaccelerator and pecl's > were not recompiled). Updating ports should never turn off or restart > service - thats my $0.02. > I had a thought about implementing this in bsd.port.mk, but to tell the truth it would be better handled by your port manager of choice-- I can't find an option for portmaster, but I bet someone willing to send a working patch to dougb can earn themselves some brownie points. I would do it myself, but meh.... it doesn't upset me that much. However, having services not restarted after an upgrade can leave you with a) a vulnerable older service and b) a nasty shock when you decide to reboot six months later and it breaks :) Chris