Shutdown

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Shutdown

fvozzi
Hi all,
I'm testing my app on a production scenary where I would have a UPS 
conected to the server running magma. If I have a electrical power failure then the 
UPS send a signal to the server for shutdown it and in that moment I would 
like close all magma conections securely and shutdown magma server. 

The correct way to do that is send #cleanUp to the MagmaSession class ?

Then I would need shutdown squeak by command line but I will read how to do that.

Thanks in advance,
FV


_______________________________________________
Magma mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/magma
Reply | Threaded
Open this post in threaded view
|

Re: Shutdown

Chris Muller-3
Hi Facu,

> The correct way to do that is send #cleanUp to the MagmaSession class ?

No.  cleanUp is only a convenience method for development.

Magma already has appropriate shutdown code for when you simply exit
the server image.  If you are running headful, you can simply exit
from the menu.

If you are running headless, I've added a special command you can run
from an *admin* MagmaSession.  First connect a MagmaSession in
administrative mode (by sending #newAdminSession to a MagmaLocation).
Then:

 myMagmaSession serverSave: false and exit: true

I start my server images with a start-up .st script, so I don't save
them when I exit.  However, if you do save it, the server that WAS
running will be automatically restarted when you restart that image,
listening on the same port.

HTH,
 Chris

On Mon, Feb 7, 2011 at 1:17 PM, Facundo Vozzi <[hidden email]> wrote:

> Hi all,
> I'm testing my app on a production scenary where I would have a UPS
> conected to the server running magma. If I have a electrical power failure
> then the
> UPS send a signal to the server for shutdown it and in that moment I would
> like close all magma conections securely and shutdown magma server.
> The correct way to do that is send #cleanUp to the MagmaSession class ?
> Then I would need shutdown squeak by command line but I will read how to do
> that.
> Thanks in advance,
> FV
>
> _______________________________________________
> Magma mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
>
_______________________________________________
Magma mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/magma