RT4S Shell Script

The RT4S shell script is used to start or stop the Server from init(1) processing, and should be executed as part of the system boot procedure only. Generally, the RT4S script does not need modification.

You must change the RT4S shell script, however, if the Server is installed in a directory other than the default directory, /opt/IBM/Optim/rt, or if the Server will be run under a user account other than root. The script contains areas that allow you to modify the following environment variables:

Symbolic Links

A symbolic link allows a filename in one directory to point to a file in another directory.

To start up and shut down the Server as part of init processing, you must create symbolic links to the RT4S script in the following directories:

  • rc2.d, where 2 is the run level for startup
  • rc1.d, where 1 is the run level for shutdown

The location of the rc2.d and rc1.d directories is platform‑specific:

  • Under Solaris and Linux, the location is /etc.
  • Under HP-UX, the location is /sbin.
  • Under AIX®, the location is /etc/rc.d.

Use the link command to create symbolic links, as follows: ln -s actualfile linkname.

actualfile
File to which a symbolic link points.

In this case, specify RT4S.

linkname
Name of a symbolic link used to point to a file.

In this case, point links named S99RT4S and K07RT4S to RT4S.

Solaris or Linux

To start up and shut down the Server during Solaris or Linux init processing, create symbolic links to the RT4S script in directories /etc/rc2.d and /etc/rc1.d.

  1. Log in as the root user.
  2. From the console, enter the following commands:
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /etc/rc2.d/S99rt4s
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /etc/rc1.d/K07rt4s

HP-UX

To start up and shut down the Server during HP-UX init processing, create symbolic links to the RT4S script in directories /sbin/rc2.d and /sbin/rc1.d.

  1. Log in as the root user.
  2. From the console, enter the following commands:
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /sbin/rc2.d/S99rt4s
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /sbin/rc1.d/K07rt4s

AIX

To start up and shut down the Server during AIX init processing, create symbolic links to the RT4S script in directories /etc/rc.d/rc2.d and /etc/rc.d/rc1.d.

  1. Log in as the root user.
  2. From the console, enter the following commands:
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /etc/rc.d/rc2.d/S99rt4s
     ln -s  /opt/IBM/Optim/rt/sbin/rt4s  /etc/rc.d/rc1.d/K07rt4s


Feedback