tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <>
Subject Re: Changing the Tomcat5 WIN32 service runner
Date Fri, 25 Feb 2005 06:14:42 GMT
Mladen Turk wrote:
> @if "%1" == "install"   goto cmdInstall
> @if "%1" == "uninstall" goto cmdUninstall
> @if "%1" == "start"     goto cmdStart
> @if "%1" == "stop"      goto cmdStop
> @if "%1" == "restart"   goto cmdRestart
> echo Usage
> goto cmdEnd

I assume the '.bat' is the only option - i.e. could you use arbitrary 
'executables' or other 'scripting languages' ? I.e. if you have cygwin 
or equivalent installed - could it execute a .sh ? Or if you have 
different scripting engine - could it run the .js or .py instead of 
.bat? And the most interesting - could you specify an executable .jar as 
the command ?

It's just that .bat is one of the ugliest scripting languages...

Having the unix-style service mechanism, i.e. a script with 
start/stop/etc is IMO a step forward and makes it much easier to
deal with services.


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

View raw message