tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Goldin <>
Subject Re: Running Tomcat as service - is it possible to make "tomcat7.exe" run a batch file each time it starts?
Date Mon, 07 Mar 2011 09:24:02 GMT

Mladen Turk-3 wrote:
>> I can try "--Install" service option  and make service run "myBatch.bat"
>> which in turn will invoke "tomcat7.exe".
> That won't work. Target executable should be %COMSPEC% with .bat file as
> a parameter (%COMSPEC% /C call nyBatch.bat)
> However running that requires a special mechanism for shutting down
> the service.
> I did that for JBossAS service wrapper, which basically is just that
> (wrapping the run.bat) and my plan is to bring that code to
> commons-daemon.

Ok, thanks a lot, good to know that. It would be nice to have this
functionality, of course.
View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message