Date: Mon, 3 Nov 2008 11:24:28 -0500 From: Andrew Berry <andrewberry@sentex.net> To: Yuri Pankov <yuri.pankov@gmail.com> Subject: Re: MySQL not restarted after portupgrade Message-ID: <B3E12D2D-9BBD-4034-943D-74E036F4492F@sentex.net> Resent-Message-ID: <200811031624.mA3GOToR030582@robin.cs.uoguelph.ca> In-Reply-To: <20081103061618.GA99308@darklight.homeunix.org> References: <513F7DF0-642B-4D58-B533-A49FEBD2E2AF@sentex.net> <20081103061618.GA99308@darklight.homeunix.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B3E12D2D-9BBD-4034-943D-74E036F4492F>