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.
About this task
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:
- Set PSTHOME=${PSTHOME: directory/rt} to define the directory containing the Server.
- Set PSTUSER=${PSTUSER:user} to identify a user other than root.
Symbolic Links
A symbolic link allows a filename in one directory to point to a file in another directory.
About this task
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 Linux®, the location is /etc.
- 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.
Linux
To start up and shut down the Server during Linux init processing, create symbolic links to the RT4S script in directories /etc/rc2.d and /etc/rc1.d.
Procedure
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.