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

Table Of Contents
SWCC Agent in TruCluster Environment
C–4 HSG80 ACS Solution Software Version 8.7 for Compaq Tru64 UNIX Installation and
Configuration Guide
An example of the Stop script follows which can be located in the
/usr/opt/SWCC520/scripts directory. The keyword “steam” is searched for and if
found the stream editor “sed” is invoked to remove it. The init daemon is then sent the
“q” option to reload the inittab file. Since the “steam” line has been removed, initd
will kill the steamd program.
/usr/opt/SWCC520/scripts/steamstop
#!/bin/sh
#
# Simple stop 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 [ $? -eq 0 ]
then
sed '/steamd/d' /etc/inittab > /etc/inittab.tmp
mv /etc/inittab.tmp /etc/inittab
init q
else
exit 0
fi
Use the ASEMGR Utility to Create the Service
With the Start/Stop scripts created and run, complete the process by using the asemgr
utility to create the service. A sample session follows:
tincp4>asemgr