Documentation Center

Starting and Stopping Tomcat on UNIX

Before you begin

A script is installed that can be used to automatically start and stop all of the WorldServer components. This file is included in the $WS_HOME directory, and is named $WS_HOME/unix/worldserver.

To configure WorldServer to start and stop automatically when the machine reboots and shuts down:

Procedure

  1. Open the $WS_HOME/unix/worldserver file in a text editor.
  2. Search for the line containing “WS_HOME=” and set the WS_HOME variable to the directory that you installed WorldServer into, for example:
    WS_HOME=/usr/local/idiom/worldserver
  3. Search for the line containing “WS_USER=” and set the WS_USER variable to the user that you want WorldServer to run as, for example:
    WS_USER=worldserver
  4. Search for the line containing “JAVA_HOME=” and set the JAVA_HOME variable to the directory of your Java SDK installation to use, for example:
    JAVA_HOME=/usr/java/j2sdk1.5.0_09
  5. If you are using Oracle as your WorldServer database or as a content repository, search for the line containing “ORACLE_HOME=” and set the ORACLE_HOME variable to the directory of your Oracle installation, for example:
    ORACLE_HOME=/oracle/10.0.0/oradata
  6. Copy this file into the /etc/init.d directory to make it available for use as a startup and shutdown script. This step requires root permissions.
  7. To enable this script:
    • On Linux, run the following command as root:
      > chkconfig –add worldserver
    • On Solaris, run the following commands as root:
      > ln -s /etc/init.d/worldserver /etc/rc3.d/S90worldserver
      > ln -s /etc/init.d/worldserver /etc/rcS.d/K05worldserver