From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 06:29:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74EAB106564A for ; Mon, 3 Nov 2008 06:29:35 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 381018FC1A for ; Mon, 3 Nov 2008 06:29:35 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mA36TY3u029530 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 3 Nov 2008 00:29:34 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mA36TWZj029524; Mon, 3 Nov 2008 00:29:32 -0600 (CST) (envelope-from dan) Date: Mon, 3 Nov 2008 00:29:32 -0600 From: Dan Nelson To: Andrew Berry Message-ID: <20081103062932.GD47647@dan.emsphone.com> References: <513F7DF0-642B-4D58-B533-A49FEBD2E2AF@sentex.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <513F7DF0-642B-4D58-B533-A49FEBD2E2AF@sentex.net> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Freebsd questions Subject: Re: MySQL not restarted after portupgrade X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 06:29:35 -0000 In the last episode (Nov 03), Andrew Berry said: > For some reason, after running portupgrade databases/mysql51-server, > MySQL is brought down, but not restarted. It's not a huge issue, as I > just have to remember to run the rc.d script after upgrading, but I > was wondering if anyone else had seen this? portupgrade seems to work > fine with other daemons such as Apache and Courier IMAP. It's in the pkg-list. The first line is "@stopdaemon mysql-server", so any time you upgrade the port, it kills mysql. Enough ports do this, and it's so annoying, that I recommend just disabling it completely: --- bsd.port.mk 5 Sep 2008 19:41:43 -0000 1.604 +++ bsd.port.mk 8 Oct 2008 06:21:55 -0000 @@ -1588,10 +1588,9 @@ DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \ WWWDIR=${WWWDIR} ETCDIR=${ETCDIR} -PLIST_REINPLACE+= dirrmtry stopdaemon rmtry +PLIST_REINPLACE+= dirrmtry rmtry PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/dev/null || true! PLIST_REINPLACE_RMTRY=s!^@rmtry \(.*\)!@unexec rm -f %D/\1 2>/dev/null || true! -PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/\1${RC_SUBR_SUFFIX} forcestop 2>/dev/null || true! # kludge to strip trailing whitespace from CFLAGS; # sub-configure will not # survive double space Some ports run the rc.d script themselves on uninstall (sysutils/hal, for exmaple), so you have to edit the pkg-plist file and remove the unexec line from those manually. -- Dan Nelson dnelson@allantgroup.com