RE: Shut down a Restlet server using kill?

2008-03-11 Thread Jerome Louvel
; De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow > Envoyé : lundi 10 mars 2008 23:58 > À : discuss@restlet.tigris.org > Objet : Re: Shut down a Restlet server using kill? > > Hi Jerome and All, > > A related question: Is there a programmatic way to tell the > Restl

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Aaron Crow
TED] De la part de Aaron Crow Envoyé : jeudi 6 mars 2008 20:28 À : discuss@restlet.tigris.org Objet : Shut down a Restlet server using kill? Is it ok to shut down a Restlet server using Unix kill? What does Restlet do in this case? And does anyone have any good advice on what the application code might do to handle this event properly?

Re: Shut down a Restlet server using kill?

2008-03-10 Thread Rob Heittman
I know somebody's already done jsvc integration, though I don't think it's in trunk. I'm going to have to implement procrun integration myself in the next few weeks for a project, unless somebody already has, and cares to contribute it ... hint hint ... - R On Mon, Mar 10, 2008 at 1:37 AM, code

Re: Shut down a Restlet server using kill?

2008-03-09 Thread code dude
has anybody used ->http://commons.apache.org/daemon/ ?? On 3/9/08, Steve Loughran <[EMAIL PROTECTED]> wrote: > > On Sun, Mar 9, 2008 at 2:36 PM, John D. Mitchell <[EMAIL PROTECTED]> > wrote: > > On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> > wrote: > > [...] > > > > > you'r

Re: Shut down a Restlet server using kill?

2008-03-09 Thread Steve Loughran
On Sun, Mar 9, 2008 at 2:36 PM, John D. Mitchell <[EMAIL PROTECTED]> wrote: > On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: > [...] > > > you're server should start returning something other than 200 from its > > happy page, and the HTTP-aware front end load balancer

Re: Shut down a Restlet server using kill?

2008-03-09 Thread John D. Mitchell
On Sat, Mar 8, 2008 at 2:29 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: [...] > you're server should start returning something other than 200 from its > happy page, and the HTTP-aware front end load balancer (which polls > these pages) will stop routing traffic to it. That makes it implicit >

Re: Shut down a Restlet server using kill?

2008-03-09 Thread John D. Mitchell
On Sat, Mar 8, 2008 at 2:25 PM, Steve Loughran <[EMAIL PROTECTED]> wrote: [...] > We in SmartFrog, http://smartfrog.org/ are assing support for Restlet > deployments as manageable components, but I don't consider the stuff > stable yet. I've finally got all my tests with S3 working, with > thro

Re: Shut down a Restlet server using kill?

2008-03-08 Thread Steve Loughran
On Sat, Mar 8, 2008 at 12:45 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Hi John, > > So as far as server app code dealing with a forced shutdown, may I ask what > you recommend for situations where there's some task running that really > should be allowed to complete? For example, would you hav

Re: Shut down a Restlet server using kill?

2008-03-08 Thread Steve Loughran
On Fri, Mar 7, 2008 at 1:09 PM, John D. Mitchell <[EMAIL PROTECTED]> wrote: > On Thu, Mar 6, 2008 at 11:28 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > > Is it ok to shut down a Restlet server using Unix kill? > > Depends on your application's specifics. > > For example, the oldest Restlet-based

Re: Shut down a Restlet server using kill?

2008-03-07 Thread John D. Mitchell
On Fri, Mar 7, 2008 at 4:45 PM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Hi John, Howdy! > So as far as server app code dealing with a forced shutdown, may I ask what > you recommend for situations where there's some task running that really > should be allowed to complete? For example, would y

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
008 20:28 À : discuss@restlet.tigris.org Objet : Shut down a Restlet server using kill? Is it ok to shut down a Restlet server using Unix kill? What does Restlet do in this case? And does anyone have any good advice on what the application code might do to handle this event properly?

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Aaron Crow
Hi John, So as far as server app code dealing with a forced shutdown, may I ask what you recommend for situations where there's some task running that really should be allowed to complete? For example, would you have the concept of an internal registry, where tasks are registered, and a shutdo

Re: Shut down a Restlet server using kill?

2008-03-07 Thread John D. Mitchell
On Thu, Mar 6, 2008 at 11:28 AM, Aaron Crow <[EMAIL PROTECTED]> wrote: > Is it ok to shut down a Restlet server using Unix kill? Depends on your application's specifics. For example, the oldest Restlet-based production code that I have is an authentication gateway that I would just kill outright.

Re: Shut down a Restlet server using kill?

2008-03-07 Thread Kevin Conaway
You should just down a Restlet server like any other java application, either with QUIT on unix or Control-Break on Windows. That will allow the jvm to gracefully shutdown by running finalizers and shutdown hooks. Sincerely, Kevin Conaway On Thu, Mar 6, 2008 at 2:28 PM, Aaron Crow <[EMAIL PROTE

RE: Shut down a Restlet server using kill?

2008-03-07 Thread Jerome Louvel
, Jerome > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Aaron Crow > Envoyé : jeudi 6 mars 2008 20:28 > À : discuss@restlet.tigris.org > Objet : Shut down a Restlet server using kill? > > Is it ok to shut down a Restlet server usi

Shut down a Restlet server using kill?

2008-03-06 Thread Aaron Crow
Is it ok to shut down a Restlet server using Unix kill? What does Restlet do in this case? And does anyone have any good advice on what the application code might do to handle this event properly?