Take a look at Java Service Wrapper: http://wrapper.tanukisoftware.org/
It covers all sorts of possibilities. --tim On Mon, Jan 12, 2009 at 12:29 PM, Leshek <[email protected]> wrote: > I want to have stop and exit restlet server command line interface. > The start is simple (java -jar myRest.jar). > > I know from within I can do getContext().getApplication().stop() > I could to it in response to http request .../STOP, but... I want to keep > control on the server only. > > So I am looking for something like starting a new Java application > > java -jar myRest.jar STOP > > to tell the other application to STOP cleanly. > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1019583 >

