Documentation Center

Starting and Stopping Tomcat on Linux

Before you begin

You can configure all the WorldServer components to start and stop automatically when your machine reboots by using an installed script. This file is included in the $WS_HOME folder and is named worldserver.

Procedure

  1. Open the worldserver file in a text editor.
  2. Set the WS_HOME variable to the folder where you installed WorldServer.
    For example, WS_HOME=/usr/local/idiom/worldserver.
  3. Set the WS_USER variable to the user that you want WorldServer to run as.
    For example, WS_USER=worldserver.
  4. Set the JAVA_HOME variable to the Java SDK installation folder that you want to use.
    For example, JAVA_HOME=/usr/java/j2sdk1.5.0_09.
  5. If you are using Oracle as your WorldServer database management system or as a content repository, set the ORACLE_HOME variable to the folder of your Oracle installation.
    For example, ORACLE_HOME=/oracle/11.1.0/oradata.
  6. Copy the worldserver file to the /etc/init.d folder to make it available for use as a startup and shutdown script. This step requires root permissions.
  7. Enable the script by running the following command as root:
    > chkconfig –add worldserver