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

Table Of Contents
SWCC Agent in TruCluster Environment
C–31HSG80 ACS Solution Software Version 8.7 for Compaq Tru64 UNIX Installation and
Configuration Guide
C–31
export START_APPCMD STOP_APPCMD APPDIR ADVFSDIRS PROBE_PROCS
#
# 8<--------------8<----------- End Custom variables
8<----------8<----------
#
# Static variables
#
PATH=/sbin:/usr/sbin:/usr/bin:/usr/lbin
TERM=vt100
SHELL=/usr/bin/sh
HOME=/
USER=root
LOGNAME=root
HOST=`/bin/hostname`
umask 117
cd ${DIR}
OLDPWD=`pwd`
export ACTION DIR PATH TERM SHELL HOME USER LOGNAME HOST OLDPWD
#
# Frequently used procedures
#
checkdaemon () {
R=`ps -o command -A | grep $1 | grep -v grep | wc -l`
return $R
}
#
killdaemon () {
kill -TERM `ps -o pid,command -A | grep $1 | grep -v grep | awk
'{print $1}'`
while checkdaemon $1; [ $? -gt 0 ]; do
sleep 1
done
}
#