Este contenido no está disponible en el idioma seleccionado.

Chapter 5. Using Jsvc to Start Tomcat


Jsvc is a set of libraries and applications that facilitates running Java applications on Linux, UNIX, and similar operating systems. Using Jsvc with JBoss Web Server allows Tomcat to switch identities. Using Jsvc, Tomcat can perform root-level operations and then revert to a non-privileged user. Jsvc is primarily used for running Tomcat as a service.

Jsvc files are available at the following locations:

  • JWS_HOME/tomcat/bin/jsvc
  • JWS_HOME/jbcs-jsvc-1.0/sbin/jsvc

    Note

    JWS_HOME/bin/jsvc is a symlink to JWS_HOME/jbcs-jsvc-1.0/sbin/jsvc.

5.1. Starting Tomcat Using Jsvc

Start Tomcat Using Jsvc

Run the following command to start Tomcat using Jsvc:

JWS_HOME/tomcat/bin/daemon.sh start
Copy to Clipboard Toggle word wrap

5.2. Stopping Tomcat Using Jsvc

Stop Tomcat Using Jsvc

Run the following command to stop Tomcat that was started using Jsvc:

JWS_HOME/tomcat/bin/daemon.sh stop
Copy to Clipboard Toggle word wrap

5.3. Jsvc Parameters

The following parameters can be configured when running the daemon.sh script:

Expand
Table 5.1. daemon.sh Startup Parameters
Parameter NameEnvironment VariableDefault ValueDescription

--java-home

JAVA_HOME

Based on the value of the PATH variable.

The Java home directory location.

--catalina-home

CATALINA_HOME

Determined by the location of the script.

The Tomcat installation directory location.

--catalina-base

CATALINA_BASE

Based on the value of the PATH variable.

The directory that contains the specific configuration and setup information if multiple servers are using the same installation.

--catalina-pid

-

$CATALINA_BASE/logs/catalina-daemon.pid

The file where the process ID (PID) for the running instance of Tomcat is stored.

--tomcat-user

-

tomcat

The user Tomcat uses.

--service-start-wait-time

-

 

This is a wrapper to the --wait parameter. The --wait parameter accepts values in seconds.

Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat