File:  [TIS-4000 Rel T60] / scripts / rc.tisstop
Revision 1.2: download - view: text, annotated - select for diffs
Tue Sep 5 18:54:16 2000 UTC (17 years, 3 months ago) by tis4000
Branches: MAIN
CVS tags: LMC_baseline, HEAD, Duluth_baseline
added many more processes - Steel

#!/bin/sh
#
# File name: rc.tisstop for TIS4000 ver. 5.1 (Solaris 2.x)
#
#	Shuts Down the TIS4000 software when the System is shutdown
#	from shutdown -i0 or -i1 or -i2 or -i6
#

donetrend="false"

pushd /tis4000/tasks
./stopJava
popd

for process in trendProcessor alarmConfig alarmvu dm edd dataVu trendvu snlvu TagvuClient snapedit alarmPrinter alarmMgr dbClient nameSrv chanAcq png2 tisTime LogReport tisCard dpa OpNoteClient UddsEditor opNote tagvu tisPermissions
do
  pid=`/usr/bin/ps -ef | grep $process | grep -v vdm | grep -v sendmail | grep -v xdm | grep -v admintool | grep -v grep | awk '{print $2}'`
  if [ $pid ]
  then
    echo
    echo "****** Shutting Down $process ******"
    echo
    if [ $process = "oracleTrendProcessor" -o $process = "dataVu" -o $process = "alarmMgr" -o $process = "dbClient" -o $process = "hsync" ]
    then
      kill -INT $pid	
    else
      kill $pid
    fi
  fi
done
var="oracleTrendServer"
pid=`/usr/bin/ps -ef | grep $var | grep -v vdm | grep -v sendmail | grep -v xdm |grep -v xdm | grep -v admintool | grep -v grep | awk '{print $2}'`
echo "****** Waiting for trendServer Shutdown ******"
echo "****** THIS MAY TAKE SEVERAL MINUTES ******"
echo
while [ $donetrend = "false" ]
do
  if [ $pid ]
  then
    pid=`/usr/bin/ps -ef | grep $var | grep -v vdm | grep -v sendmail | grep -v xdm | grep -v admintool | grep -v grep | awk '{print $2}'`
  else
    donetrend="true"
  fi
done
#

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>