Installing Tomcat 4 as an NT service
While Matt was talking about the Tomcat Service Manager, coincidentally, I was trying to install Tomcat 4 as a service on a Windows 2000 machine yesterday. For various reasons, I didn't want to install Tomcat via the .exe and therefore had to hunt around for the command line that installs the NT service. For (my) future reference, here it is, split over several lines for readability.
%CATALINA_HOME%\bin\tomcat -install "Jakarta Tomcat 4"
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs
-start org.apache.catalina.startup.Bootstrap -params start
-stop org.apache.catalina.startup.Bootstrap -params stop