You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jean-frederic clere <jf...@fujitsu-siemens.com> on 2001/07/31 10:52:38 UTC

Re: cvs commit: jakarta-tomcat-service/java/org/apache/serviceService.java

"Pier P. Fumagalli" wrote:
> 
> Craig R. McClanahan at craigmcc@apache.org wrote:
> 
> > +1 for the second approach.  If the logic of your service allows for
> > "restarting" without forcing an unload/reload of the entire JVM, the APIs
> > should accomodate that.
> 
> Again, it would not mean "restart", but merely "pause" and "continue", as
> most of the construction should be performed in init(), since that's the one
> with privileged super-user access in unix...

Something like the graceful restart of httpd.
init creates the ServerSocket as root
start stars the clients threads as tomcat user.
stop stops all the clients threads.
destroy closes the ServerSocket. and unload the entire JVM?

> 
>     Pier