NonStop Server Guide for BEA WebLogic Server 8.1

Configuring Persistent WebLogic Server Processes
HP NonStop Server Guide for BEA WebLogic Server 8.1529891-001
4-5
Sample Shell Scripts and TACL Macros
Other generic process attributes can be ignored. HOMETERM and OUTFILE should
typically be set to $ZHOME.
Sample Shell Scripts and TACL Macros
Configuring a generic process requires using SCF, the Guardian command interpreter.
Commands must be run by a member of the SUPER group. Four sample files are
provided for the NonStop server. These sample files are: startgp.sh,
startgp.tacl, stopgp.sh, and stopgp.tacl. Two of the scripts are Korn shell
scripts and two are TACL macros, therefore, you can choose which command
interpreter you prefer to use.
Both startgp files must be copied and modified to start either the Administration
Server or the Node Manager. The stopgp files take the name of the generic process
to be stopped and should not need modification.
startgp.sh
startgp.sh is a shell script. It can be copied by a member of the SUPER group,
updated, and then a chmod command performed (for example, chmod u+s
startgp.sh) so that anyone running the script will be considered a member of the
SUPER group. Or, the user can log on as a SUPER user before running the script.
Update the script as outlined in the script instructions (found in the script). Changes
include making sure the script uses a unique generic process logical name and
process name and that the script starts the correct shell script. Otherwise, the script
starts SCF and will attempt to delete, add, and then start the generic process.
STARTUPMSG This attribute is limited to 128 characters. The sample scripts use
-c script <->>stdout 2>>stderr”. In this example, -c tells
OSH to run script, <- causes OSH to ignore stdin, >> directs
output to stdout, and >>2 directs output to stderr.
STOPMODE Using OSH, only STANDARD causes the OSH process to be
stopped during an SCF ABORT PROCESS command. Using SPI
or SYSMSG with OSH will cause the ABORT command to
succeed, but the process will not stop. The process will have to
be manually stopped.
TYPE Use OTHER.
USERID Unless the WebLogic Server process runs as a member of the
SUPER group, set this attribute. This might have ramifications
with the shell scripts if your environment expects values to be set
from the .profile of this userid.
ASSOCPROC Set ASSOCPROC to the Guardian name of the OSS process.
Table 4-1. Generic Process Attributes Table
Attribute Consideration