From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 16:25:04 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 4B12B1065673 for ; Mon, 3 Nov 2008 16:25:04 +0000 (UTC) (envelope-from andrewberry@sentex.net) Received: from mailhub.cs.uoguelph.ca (mailhub.cs.uoguelph.ca [131.104.94.205]) by mx1.freebsd.org (Postfix) with ESMTP id DCACF8FC1E for ; Mon, 3 Nov 2008 16:25:03 +0000 (UTC) (envelope-from andrewberry@sentex.net) Received: from robin.cs.uoguelph.ca (robin.cs.uoguelph.ca [131.104.93.49]) by mailhub.cs.uoguelph.ca (8.13.1/8.13.1) with ESMTP id mA3GP2HU017332 for ; Mon, 3 Nov 2008 11:25:02 -0500 Received: from [10.1.53.82] (69-196-186-240.dsl.teksavvy.com [69.196.186.240]) (authenticated bits=0) by robin.cs.uoguelph.ca (8.13.4/8.13.4) with ESMTP id mA3GOToR030582 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 3 Nov 2008 11:24:59 -0500 Resent-Message-Id: <200811031624.mA3GOToR030582@robin.cs.uoguelph.ca> Resent-To: Freebsd questions From: Andrew Berry To: Yuri Pankov In-Reply-To: <20081103061618.GA99308@darklight.homeunix.org> Resent-From: Andrew Berry References: <513F7DF0-642B-4D58-B533-A49FEBD2E2AF@sentex.net> <20081103061618.GA99308@darklight.homeunix.org> Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Resent-Date: Mon, 3 Nov 2008 11:24:58 -0500 Mime-Version: 1.0 (Apple Message framework v929.2) Date: Mon, 3 Nov 2008 11:24:28 -0500 X-Mailer: Apple Mail (2.929.2) X-Spam-Scanner: SpamAssassin 3.000004 (http://www.spamassassin.org/) on robin.cs.uoguelph.ca X-Spam-Score: hits=0.8 X-Spam-Level: * X-Spam-Tests: SPF_SOFTFAIL X-Spam-Status: Suspected X-Scanned-By: MIMEDefang 2.63 on 131.104.94.205 X-Scanned-By: MIMEDefang 2.52 on 172.17.94.86 Cc: 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 16:25:04 -0000 On 3-Nov-08, at 1:16 AM, Yuri Pankov wrote: > Apache and Courier IMAP are just not stopped during deinstall stage > (IIRC). You can use AFTERINSTALL in /usr/local/etc/pkgtools.conf to > start MySQL after upgrade. Thanks! There's even an example using mysql-server in the file. My AFTERINSTALL is now: AFTERINSTALL = { # Re-enable the X wrapper 'x11-servers/XFree86-4-Server' => sprintf( 'cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi', x11base()), # Automatically start MySQL server 'databases/mysql51-server' => proc { |origin| cmd_enable_rc(origin) + ';' + cmd_start_rc(origin) }, } --Andrew