Re: Portupgrade and mysql5-server

2007-07-25 Thread Dan Nelson
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
[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: Portupgrade and mysql5-server

2007-07-25 Thread Ian Lord
-Original Message-
From: Yuri Pankov [mailto:[EMAIL PROTECTED] 
Sent: 25 juillet 2007 11:29
To: Ian Lord
Cc: freebsd-questions@freebsd.org
Subject: Re: Portupgrade and mysql5-server

On Wed, Jul 25, 2007 at 11:25:54AM -0400, Ian Lord wrote:
> 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 ?
> 
>  
> 
> Thanks
> 

It shouldn't. If you want it to start automatically, check
/usr/local/etc/pkgtools.conf, search for AFTERINSTALL.


Yuri


Thanks !

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Portupgrade and mysql5-server

2007-07-25 Thread Yuri Pankov
On Wed, Jul 25, 2007 at 11:25:54AM -0400, Ian Lord wrote:
> 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 ?
> 
>  
> 
> Thanks
> 

It shouldn't. If you want it to start automatically, check
/usr/local/etc/pkgtools.conf, search for AFTERINSTALL.


Yuri


pgpKr9qNqtbeB.pgp
Description: PGP signature