From: Florent THOMAS Date: 2010-06-22T22:09:22+09:00 Subject: Re: script for production server --=-W6xegVO93D3AdkRJpNf7 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable thanks for all your answers. I found a package that works fine in Centos via webmin. Best regards Le mardi 22 juin 2010 =E0 21:50 +0900, hackob@hackob.net a =E9crit : > Also you can use the nohup command this prevents that the command ends on= shell exit. >=20 > hackob desde Blackberry=AE. >=20 > -----Original Message----- > From: Florent THOMAS > Date: Tue, 22 Jun 2010 18:51:31=20 > To: ruby-talk ML > Reply-To: ruby-talk@ruby-lang.org > Subject: Re: script for production server >=20 > Thanks a lot for your answer. >=20 > I will search in this direction. > I was just wondering if there is a ruby command to test wether an > application runs or not. > Best regards >=20 >=20 > Le mardi 22 juin 2010 =E0 18:47 +0900, Markus Schirp a =E9crit : >=20 > > This is not a ruby specific problem. > >=20 > > All processes started "normally" from a shell are terminated when the=20 > > shell exits. > >=20 > > There are many, many posibillities to avoid this, the most easy way=20 > > would be the use of the programm screen. But it has several diadvantage= s. > >=20 > > I suggest to use a process supervisor (it will restart your programm=20 > > when it crashes, and takes care of starting it after your server comes = up). > >=20 > > Personally I use: > >=20 > > supervise (from djbs deamontools) and > > monit > >=20 > > Feel free to google ;) > >=20 > > Mfg > >=20 > > Markus > >=20 > >=20 > >=20 > >=20 > > On 06/22/2010 11:37 AM, Florent THOMAS wrote: > > > Hello, > > > > > > I'm pretty new with ruby and I've just installed retrospectiva with > > > success within ruby enterprise edition. > > > I ran with success the command : /XXXXX/bin/ruby script/server -e > > > production -p3000 > > > Unfortunately as I close the shell, the server shut down. > > > How can I test that the server is in production in order to make it a= s a > > > service in a script. > > > > > > best regards > > > > >=20 >=20 --=-W6xegVO93D3AdkRJpNf7--