<br><br><div class="gmail_quote">2009/7/15 Miguel Enrique Cobá Martinez <span dir="ltr"><<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El mié, 15-07-2009 a las 21:20 -0300, Mariano Martinez Peck escribió:<br>
<div><div></div><div class="h5">><br>
><br>
> 2009/7/15 Miguel Enrique Cobá Martinez <<a href="mailto:miguel.coba@gmail.com">miguel.coba@gmail.com</a>><br>
> El mié, 15-07-2009 a las 17:57 -0300, Germán Arduino escribió:<br>
> > Tried, but don't works.<br>
> ><br>
> > I got the same error.<br>
> ><br>
><br>
><br>
> I use this script to start a magma image an serveral seaside<br>
> images:<br>
><br>
> #!/bin/sh<br>
><br>
> NOHUP="/usr/bin/nohup"<br>
> SQUEAK_VM="/usr/bin/squeakvm"<br>
> SQUEAK_OPTS="-mmap 100m -vm-sound-null -vm-display-X11<br>
> -headless"<br>
> SQUEAK="$SQUEAK_VM $SQUEAK_OPTS"<br>
> IMAGES_HOME="/home/miguel/squeak/images/azteca"<br>
> SCRIPTS_HOME="/home/miguel/squeak/scripts/azteca"<br>
> LOGS_HOME="/home/miguel/squeak/logs/azteca"<br>
> START_PORT=8080<br>
> END_PORT=8093<br>
><br>
><br>
> # Start the Magma image<br>
> echo "Starting Magma image"<br>
> $NOHUP $SQUEAK $IMAGES_HOME/magma.image $SCRIPTS_HOME/<a href="http://magma.st" target="_blank">magma.st</a><br>
> >><br>
> $LOGS_HOME/magma.nohup &<br>
><br>
> # Start the Seaside images<br>
> for PORT in `seq $START_PORT $END_PORT`; do<br>
> echo "Starting Seaside image on port: $port"<br>
> $NOHUP $SQUEAK $IMAGES_HOME/seaside.image<br>
> $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a><br>
><br>
> Nice script!!! I will base my future ones on this :)<br>
><br>
> What I don't understand here is which type of scripts you send as<br>
> parameters to squeakVM. Scripts to the VM ?? Can you show me some<br>
> examples of what you have in $SCRIPTS_HOME/<a href="http://seaside.st" target="_blank">seaside.st</a> ??<br>
><br>
<br>
</div></div>Yes you can have here anything that you can put in a workspace.<br>
I learned this from Ramon Leon, in the post about scaling seaside with<br>
apache, but in the end I didn't use (I mean the seaside scaling à la<br>
dabbledb/ramonleon) because I used lighttpd and a fixed set of images:<br>
<br>
This is my <a href="http://seaside.st" target="_blank">seaside.st</a>, again, stolen from Ramon's blog (thanks Ramon :)<br>
[<br>
[<br>
[ 60 seconds asDelay wait.<br>
(FileDirectory default fileOrDirectoryExists:<br>
'/home/miguel/proyectos/azteca/scripts/shutdown.seaside')<br>
ifTrue: [ SmalltalkImage current snapshot: false andQuit: true ]<br>
] on: Error do: [ :error | error asDebugEmail ]<br>
] repeat<br>
] forkAt: Processor systemBackgroundPriority.<br>
Project uiProcess suspend.<br>
<br>
and what it does is to check every 60 seconds for the existance of a<br>
file and if exists, just shutdown without saving. This way I can stop my<br>
farm of seaside images. Enjoy.</blockquote><div><br>Wow! awesome<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div class="im"><br>
><br>
> port $PORT >> $LOGS_HOME/seaside.nohup &<br>
><br>
> What does this line do?<br>
><br>
<br>
</div>I start the images with the command nohup from unix/linux that makes a<br>
process to continue living even if you logout the session (otherwise all<br>
your jobs/proccess are killed on logout because are children of the<br>
session process). </blockquote><div><br>yep<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The command it is everything after the nohup. The &<br>
puts the proccess in background and the >> redirects the output (errors)<br>
to a file for later reviewing.<br>
</blockquote><div><br><br>ahhhh it continues the last line!! now I get it. I thought it was a new line, thus I didn't know a command called "port" hahaa.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
> Thanks!<br>
><br>
> Mariano<br>
><br>
<br>
Saludos,<br>
<font color="#888888">Miguel Cobá<br>
</font><div><div></div><div class="h5"><br>
><br>
> done<br>
><br>
><br>
> check the order of the parameters that stablish the port for<br>
> the seaside<br>
> image.<br>
><br>
><br>
> > Cheers.<br>
> > Germán.<br>
> ><br>
> > 2009/7/15, Philippe Marschall<br>
> <<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>>:<br>
> > > 2009/7/14, Germán Arduino <<a href="mailto:garduino@gmail.com">garduino@gmail.com</a>>:<br>
> > ><br>
> > > > Hi:<br>
> > > ><br>
> > > > As far as I saw on some doc it's possible to start a<br>
> seaside image in<br>
> > > > the way: "squeakvm seaside.image PORT nnnn". Then, as<br>
> WAKom check this<br>
> > > > parameter on its #startUp method, is posible to have it<br>
> running on the<br>
> > > > passed port.<br>
> > ><br>
> > ><br>
> > > Try:<br>
> > ><br>
> > ><br>
> > > squeakvm seaside.image -- PORT nnnn<br>
> > ><br>
> > ><br>
> > > Squeak is a bit peculiar when it comes to command line<br>
> arguments.<br>
> > ><br>
> > > Cheers<br>
> > > Philippe<br>
> > > _______________________________________________<br>
> > > seaside mailing list<br>
> > > <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> > ><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
> > ><br>
> > _______________________________________________<br>
> > seaside mailing list<br>
> > <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> ><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>