Hi,

The current procrun from commons-daemon we use to run Tomcat as
Windows service is not actively maintained any more.

I have created a SvcBatch project that uses different
approach by running batch files as services.

This means that instead complex configuration, one
can use catalina.bat directly, enabling versatile customization

For example to run Tomcat as service, put svcbatch.exe inside
tomcat/bin and create tomcatsvc.bat (or whatever) file with
the following content

@echo off
catalina.bat run

Then install the service by typing in command prompt
> sc create Tomcat start= auto DisplayName= "Apache Tomcat" binPath= 
""%CD%\svcbatch.exe" tomcatsvc.bat"

You can now start tomcat as a service by either typing
> sc start Tomcat
or
> net start Tomcat
or by using MMC Servcie GUI, etc.

To get full java thread dump just enter
> sc control Tomcat 233
Thread dump will end up inside tomcat/bin/Logs/SvcBatch.log

Anyhow, here is the code with more docs (I know ... working on that)

https://github.com/mturk/svcbatch

I'd like to get community feedback on that project, and
if proven useful we might consider using it as addon
or replacement for procrun.


Regards
--
^TM

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to