File:  [TIS-4000 Rel T60] / scripts / stopJava
Revision 1.2: download - view: text, annotated - select for diffs
Fri Sep 29 17:28:29 2000 UTC (17 years, 2 months ago) by tis4000
Branches: MAIN
CVS tags: SPR653, LMC_baseline, HEAD, Duluth_baseline
SPR 653
Use /usr/ucb/ps rather than /usr/bin/ps. - Steel

#!/usr/bin/csh
#
# Stop java processes
#
set javaprocesses = (OPTServer TagvuServer OpNoteServer)
echo "Stopping Java servers"
foreach jproc ($javaprocesses)
  set pid=`/usr/ucb/ps -axww | grep $jproc | grep -v grep | awk '{print $1}'`
  if ($#pid) then
    echo ""
    echo "****** Stopping $jproc ******"
    echo ""
    (kill $pid)
  endif
end

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