Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
Thanks for all :)
Cédrick
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
I think you just have to look at different exemples of scripts in init.d/ to understand how to make one. Basically, a simple switch/case statement that handles start|stop|restart could be enough.
To make a software stay alive after an exit of the owner, you should call it with 'nohup':
# nohup squeak -nodisplay myImage.image
Bye
My unxi is rusty but exec should not kill the process when the shell exits.
Stef
On 20 juin 06, at 16:42, cdrick wrote:
Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
Thanks for all :)
Cédrick _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
In fact, if you launch your application with exec, it exits the shell :-) but squeak stays.
stéphane ducasse a écrit :
My unxi is rusty but exec should not kill the process when the shell exits.
Stef
On 20 juin 06, at 16:42, cdrick wrote:
Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
Thanks for all :)
Cédrick _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
cdrick wrote:
Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
Thanks for all :)
you can also check out daemontools. They work very well.
http://cr.yp.to/daemontools.html
Le Tuesday 20 June 2006 16:42, cdrick a écrit :
Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
maybe you can reuse init.d script from squeak swiki. have a look at: http://minnow.cc.gatech.edu/swiki/72
alain
Thanks for all :)
Cédrick
Il giorno mar, 20/06/2006 alle 21.13 +0200, Alain Plantec ha scritto:
maybe you can reuse init.d script from squeak swiki. have a look at: http://minnow.cc.gatech.edu/swiki/72
I successfully this initscript: http://minnow.cc.gatech.edu/swiki/124 for a swiki server.
Giovanni
Cedrik,
FWIW, the attached /etc/init.d/squeak_http is what I use to run seaside-based applications on Linux startup. It was mostly borrowed from SuSE and should be LSB 1.2 compliant, but not completely sure. Also, the main script actually calls another one (squeak_http_service, also attached), I think the reason was I wanted a script that can be edited by regular user, not sure why - you can probably just move the corresponding start/stop sections from squeak_http_service to squeak_http.
To enable it as startup service, run
chkconfig --add squeak_http
Milan
On 2006 June 20 10:42, cdrick wrote:
Hi all :)
do you know how to make an init.d script to start squeak each time a linux server starts... It's for seaside. For now I use a command line squeak -nodisplay myImage.image but when I close the shell, squeak stops too
Thanks for all :)
Cédrick
beginners@lists.squeakfoundation.org