Re: MySQL not restarted after portupgrade
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL not restarted after portupgrade
On Sun, 2 Nov 2008 22:21:53 -0800 Jeremy Chadwick [EMAIL PROTECTED] wrote: On Mon, Nov 03, 2008 at 12:52:53AM -0500, Andrew Berry wrote: 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. This is a per-port thing, unless portupgrade provides some form of rc.subr script restarting itself. There is no standard for this. You can setup BEFOREDEINSTALL and/or AFTERINSTALL in pkgtools.conf to run rc.d scripts per port. Portmanager has a similar feature. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL not restarted after portupgrade
On Mon, Nov 03, 2008 at 12:52:53AM -0500, Andrew Berry wrote: 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. This is a per-port thing, unless portupgrade provides some form of rc.subr script restarting itself. There is no standard for this. -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL not restarted after portupgrade
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 - 1.604 +++ bsd.port.mk 8 Oct 2008 06:21:55 - @@ -1588,10 +1588,9 @@ DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \ WWWDIR=${WWWDIR} ETCDIR=${ETCDIR} -PLIST_REINPLACE+= dirrmtry stopdaemon rmtry +PLIST_REINPLACE+= dirrmtry rmtry [EMAIL PROTECTED] \(.*\)[EMAIL PROTECTED] rmdir %D/\1 2/dev/null || true! [EMAIL PROTECTED] \(.*\)[EMAIL PROTECTED] rm -f %D/\1 2/dev/null || true! [EMAIL PROTECTED] \(.*\)[EMAIL PROTECTED] %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 [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MySQL not restarted after portupgrade
On Mon, Nov 03, 2008 at 12:52:53AM -0500, Andrew Berry wrote: Hi, 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. Thanks, --Andrew 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. HTH, Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]