From owner-freebsd-ports@FreeBSD.ORG Thu Oct 27 13:23:45 2011 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86DD0106564A for ; Thu, 27 Oct 2011 13:23:45 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id 60D128FC15 for ; Thu, 27 Oct 2011 13:23:45 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id 559195C3A; Thu, 27 Oct 2011 09:04:58 -0400 (EDT) Date: Thu, 27 Oct 2011 09:04:58 -0400 From: Wesley Shields To: Ed Schouten Message-ID: <20111027130458.GD2934@atarininja.org> References: <20111027091500.GM63910@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111027091500.GM63910@hoeg.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org Subject: Re: ports/162049: The Ports tree lacks a framework to restart services 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: Thu, 27 Oct 2011 13:23:45 -0000 On Thu, Oct 27, 2011 at 11:15:00AM +0200, Ed Schouten wrote: > Hi folks, > > As crees@ suggested, I'm sending an email to ports@ about this. > > What really bothers me when I use the FreeBSD Ports tree on one of my > systems, is that the behaviour of dealing with services is quite > inconsistent. As mentioned in the PR: I agree inconsistency is a problem that could be addressed, but I don't particularly agree with some of your statements. > - If I upgrade Apache, MySQL or PostgreSQL, it does not restart the > service, meaning it won't use the freshly installed daemon. This has > potential security issues. I'd prefer that no services are started or stopped automatically, unless absolutely necessary for the upgrade. > - If I upgrade Dovecot, it shuts it down during the upgrade, but won't > restart it. This means that I have to watch portmaster to complete and > must not forget to restart Dovecot afterwards. Unless it is absolutely necessary to stop and restart dovecot during an upgrade I would like to see this removed. > My question is whether anyone has ever attempted to improve the > integration with rc-scripts? In the PR I propose something along these > lines: > > We know exactly which ports install rc scripts (USE_RC_SUBR). > Why not run `/usr/local/etc/rc.d/${FOO} status' and > `/usr/local/etc/rc.d/${FOO} stop' prior to installation. Based > on the return value of the first, we can run > `/usr/local/etc/rc.d/${FOO} start' after installation. I'm of the opinion that ports/packages should not touch running services unless absolutely necessary. -- WXS