HSG80 ACS Solution Software Version 8.7 for Compaq Tru64 UNIX Installation and Configuration Guide

Table Of Contents
SWCC Agent in TruCluster Environment
C–3HSG80 ACS Solution Software Version 8.7 for Compaq Tru64 UNIX Installation and
Configuration Guide
C–3
2. Create the service.
You can accomplish both steps by creating the Start/Stop scripts and then running the
asemgr to finish creating the service.
NOTE: When the ASE Director is started (for example during boot up) ASE Services run the STOP scripts for all
defined services by default. It then runs the Start scripts for all defined services. When writing Start/Stop scripts,
one thing that should be apparent is scripts that toggle a program’s run state will exhibit erratic behavior.
Creating the Start/Stop Script
To create Start/Stop scripts outside of the asemgr utility use your favorite editor. The
Start script should start the program.
/usr/opt/SWCC520/scripts/steamstart
#!/bin/sh
#
# Simple start script for steamd.
#
PATH=.:/etc:/bin:/usr/bin:/usr/ucb:/sbin
export PATH
SD=”/usr/opt/SWCC520/bin/steamd”
grep -qsw steam /etc/inittab
if [ $? -ne 0 ]
then
echo “steam:3:respawn:$SD sF” >> /etc/inittab
init q
else
exit 0
fi