Shutdown

Chris Muller asqueaker at gmail.com
Tue Feb 8 18:11:44 UTC 2011


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 <facundov79 at gmail.com> 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
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
>


More information about the Magma mailing list