From ec1accad5e3296a2fe1b227651e0dcd9de82f303 Mon Sep 17 00:00:00 2001 From: markt Date: Sat, 18 Jul 2009 11:53:41 +0000 Subject: [PATCH] Fixed https://issues.apache.org/bugzilla/show_bug.cgi?id=41564 Updated Tomcat6 to Tomcat 7 I couldn't see anything obviously obsolete so I removed the warning. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@795348 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/windows-service-howto.xml | 53 +++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/webapps/docs/windows-service-howto.xml b/webapps/docs/windows-service-howto.xml index ed875661a..c50d5c0c6 100644 --- a/webapps/docs/windows-service-howto.xml +++ b/webapps/docs/windows-service-howto.xml @@ -29,19 +29,14 @@ -
+

- This section of the documentation applies to procrun 1.0, and is now obsolete. + Tomcat7 is a service application for running Tomcat7 as NT service.

-
+

- Tomcat6 is a service application for running Tomcat6 as NT service. -

-
-
-

- Tomcat6w is a GUI application for monitoring and configuring Tomcat + Tomcat7w is a GUI application for monitoring and configuring Tomcat services.

The available command line options are:

@@ -70,7 +65,7 @@ Run the service as console application This is the default operation. It is called if the no option is provided. The ServiceName is the name of the executable without - exe suffix, meaning Tomcat6 + exe suffix, meaning Tomcat7 //RS// Run the service @@ -305,22 +300,32 @@

-The safest way to manually install the service is to use the provided service.bat script. +The safest way to manually install the service is to use the provided +service.bat script. Administrator privileges are required to run this +script. If necessary, you can use the /user switch to specify +a user to use for the installation of the service. +

+

+NOTE: On Windows Vista or any other operating system with User +Account Control (UAC) you must either disable UAC or right-click on cmd.exe and +select "Run as administrator" in order to run this script. If UAC is enabled +neither being logged on with an Administrator account, nor using the +/user switch is sufficient.

-Install the service named 'Tomcat6' +Install the service named 'Tomcat7' C:\> service.bat install

-If using tomcat6.exe, you need to use the //IS// parameter. +If using tomcat7.exe, you need to use the //IS// parameter.

-Install the service named 'Tomcat6' -C:\> tomcat6 //IS//Tomcat6 --DisplayName="Apache Tomcat 6" \ -C:\> --Install="C:\Program Files\Tomcat\bin\tomcat6.exe" --Jvm=auto \ +Install the service named 'Tomcat7' +C:\> tomcat7 //IS//Tomcat7 --DisplayName="Apache Tomcat 7" \ +C:\> --Install="C:\Program Files\Tomcat\bin\tomcat7.exe" --Jvm=auto \ C:\> --StartMode=jvm --StopMode=jvm \ C:\> --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start \ C:\> --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop @@ -333,8 +338,8 @@ To update the service parameters, you need to use the //US// parameter.

-Update the service named 'Tomcat6 -C:\> tomcat6 //US//Tomcat6 --Description="Apache Tomcat Server - http://tomcat.apache.org/ " \ +Update the service named 'Tomcat7' +C:\> tomcat7 //US//Tomcat7 --Description="Apache Tomcat Server - http://tomcat.apache.org/ " \ C:\> --Startup=auto --Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar

@@ -346,8 +351,8 @@ If the service is running it will be stopped and then deleted.

-Remove the service named 'Tomcat6' -C:\> tomcat6 //DS//Tomcat6 +Remove the service named 'Tomcat7' +C:\> tomcat7 //DS//Tomcat7

@@ -356,15 +361,15 @@ C:\> tomcat6 //DS//Tomcat6 To run the service in console mode, you need to use the //TS// parameter. The service shutdown can be initiated by pressing CTRL+C or CTRL+BREAK. -If you rename the tomcat6.exe to testservice.exe then you can just execute the +If you rename the tomcat7.exe to testservice.exe then you can just execute the testservice.exe and this command mode will be executed by default.

-Run the service named 'Tomcat6' in console mode -C:\> tomcat6 //TS//Tomcat6 [additional arguments] +Run the service named 'Tomcat7' in console mode +C:\> tomcat7 //TS//Tomcat7 [additional arguments] Or simply execute: -C:\> tomcat6 +C:\> tomcat7

-- 2.11.0