File:  [TIS-4000 Rel T60] / scripts / startJava
Revision 1.1: download - view: text, annotated - select for diffs
Wed Aug 16 12:54:11 2000 UTC (17 years, 3 months ago) by tis4000
Branches: MAIN
CVS tags: LMC_baseline, HEAD, Duluth_baseline
Script files called by start_TIS and stop_TIS. - Tomalesky

#!/usr/bin/csh
#
# Before starting any of the servers, check to see if they
# are already running
#
set javaprocesses = (OPTServer TagvuServer OpNoteServer)
echo "Starting Java servers"
foreach jproc ($javaprocesses)
  set pid=`/usr/bin/ps -ef | grep $jproc | grep -v grep | awk '{print $2}'`
  if ($#pid == 0) then
    echo ""
    echo "****** Starting $jproc ******"
    echo ""
    java -jar $jproc.jar &
    sleep 5
  endif
end

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