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]"

Reply via email to