From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Oct 27 08:00:18 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7005C1065679 for ; Thu, 27 Oct 2011 08:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 118C08FC17 for ; Thu, 27 Oct 2011 08:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9R80Hbs067253 for ; Thu, 27 Oct 2011 08:00:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9R80H1t067252; Thu, 27 Oct 2011 08:00:17 GMT (envelope-from gnats) Resent-Date: Thu, 27 Oct 2011 08:00:17 GMT Resent-Message-Id: <201110270800.p9R80H1t067252@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ed Schouten Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 639D3106566B for ; Thu, 27 Oct 2011 07:51:47 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 083DD8FC14 for ; Thu, 27 Oct 2011 07:51:47 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 36F122A28CE3; Thu, 27 Oct 2011 09:51:46 +0200 (CEST) Message-Id: <20111027075146.36F122A28CE3@mx0.hoeg.nl> Date: Thu, 27 Oct 2011 09:51:46 +0200 (CEST) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/162049: The Ports tree lacks a framework to restart services X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2011 08:00:18 -0000 >Number: 162049 >Category: ports >Synopsis: The Ports tree lacks a framework to restart services >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 27 08:00:17 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 9.0-RC1 amd64 >Organization: The FreeBSD Project >Environment: System: FreeBSD palm.hoeg.nl 9.0-RC1 FreeBSD 9.0-RC1 #0 r+dfb7a87: Mon Oct 17 21:49:07 CEST 2011 ed@hertog.hoeg.nl:/usr/obj/export/pub/src/sys/HERTOG amd64 >Description: Right now there are two problems with the FreeBSD Ports tree with respect to the way it deals with services. - 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. - 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. >How-To-Repeat: Run this command: portmaster dovecot It will shut down Dovecot and will not restart it afterwards. >Fix: 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. >Release-Note: >Audit-Trail: >Unformatted: