From owner-freebsd-questions@FreeBSD.ORG Wed Jul 25 17:11:15 2007 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 EF3EB16A41F for ; Wed, 25 Jul 2007 17:11:15 +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 8BA4B13C46E for ; Wed, 25 Jul 2007 17:11:05 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.1/8.13.8) id l6PHAxX9063309; Wed, 25 Jul 2007 12:10:59 -0500 (CDT) (envelope-from dan) Date: Wed, 25 Jul 2007 12:10:59 -0500 From: Dan Nelson To: Ian Lord Message-ID: <20070725171058.GD62877@dan.emsphone.com> References: <0d3a01c7ced0$1764a620$6400a8c0@msdi.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d3a01c7ced0$1764a620$6400a8c0@msdi.local> X-OS: FreeBSD 7.0-CURRENT User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org Subject: Re: Portupgrade and mysql5-server 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: Wed, 25 Jul 2007 17:11:16 -0000 In the last episode (Jul 25), Ian Lord said: > Hi, > > Just a quick question. > > When there is a new version of mysql5-server port, I use "portupgrade > -a" to update it. > > Everytime I need to do a "/usr/local/etc/rc.d/mysql-server start" to > start it manually after the upgrade. > > Shouldn't it be done automatically ? imho this is a bug in the plist. It shouldn't shutdown mysql in the first place. I remove the "@stopdaemon mysql-server" from pkg-plist. Then after I portupgrade mysql, I just run "/usr/local/etc/rc.d/mysql-server restart" to bring up the new version with only a fraction of a second of downtime. -- Dan Nelson dnelson@allantgroup.com