|
From: Leif M. <le...@ta...> - 2006-02-07 11:19:42
|
Filip,
Applications like Jetty are what the WrapperSimplApp (Method 1)
helper class
were designed for. They are normally shut down by sending a TERM signal or
CTRL-C. The Wrapper shuts them down by calling System.exit and using
Jetty's shutdown hooks to shut down the server cleanly.
Cheers,
Leif
Filip Rachunek wrote:
> Hello,
>
> I use Jetty 5.1.10 on Gentoo Linux and I would like to use the Wrapper
> to start|stop|restart the Jetty server, possibly with the Method 2 -
> http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-nix.html
>
> The problem is that the example for Tomcat uses the same class -
> org.apache.catalina.startup.Bootstrap - for both starting and stopping
> Tomcat but the similar class in Jetty - org.mortbay.jetty.Server - is
> used for starting only (instead of stopping, the jetty.sh script calls
> kill to terminate the Jetty process). Or am I missing something? Is it
> possible to integrate Wrapper with Jetty in the mentioned way?
>
> Thanks for any help.
> Filip
>
|