tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeny Goldin <evge...@gmail.com>
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: http://old.nabble.com/Running-Tomcat-as-service---is-it-possible-to-make-%22tomcat7.exe%22-run-a-batch-file-each-time-it-starts--tp31081552p31086000.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message