NonStop Server Guide for BEA WebLogic Server 9.2
Configuring Persistent WebLogic Server Processes
HP NonStop Server Guide for BEA WebLogic Server 9.2—529891-002
4-6
Sample Shell Scripts and TACL Macros
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 the other 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 require modification.
startgp.sh
startgp.sh is a shell script. A member of the SUPER group can copy startgp.sh,
update it, and perform chmod command (for example, chmod u+s startgp.sh) so
that anyone running the script will be considered as a member of the SUPER group.
You can also log on as a SUPER user before running the script.
Update the script as outlined in the script instructions (found in the script). You need to
ensure that the script uses a unique generic process logical name and a process
name. Also ensure 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.
startgp.tacl
startgp.tacl is a TACL macro that must be copied to the Guardian namespace and
converted to an EDIT file using CTOEDIT. As with startgp.sh, the macro needs to
be updated to reflect the process to be started and must be run by a member of the
SUPER group.
Scripts to Start the WebLogic Server Process
Regardless of the method used to add and start the generic process, a sample script is
needed to start the WebLogic Server process. To avoid the character limit of 115 on
STARTUPMSG, place the following scripts in a directory near the root directory. The
Administration Server script and the Node Manager script use the standard scripts
created by the WebLogic Server. These scripts can be expanded as appropriate.
Administration Server Script
Place the following text into a file, turn the execute bit on, and use its name as the
script name used when adding the generic process:
#!/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin:
cd <application directory>
. ./setEnv.sh










