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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org