home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / condor40.zip / CONDOR / GENERIC / Condor.off < prev    next >
Text File  |  1989-05-09  |  870b  |  36 lines

  1. #!/bin/csh -f
  2.  
  3. set E=`grep ^START_DAEMONS ~condor/condor_config.local >& /dev/null`
  4. if ( $status != 0 ) echo START_DAEMONS >> ~condor/condor_config.local
  5.  
  6. ed - ~condor/condor_config.local << END_OF_GROT
  7. /^START_DAEMONS/c
  8. START_DAEMONS = False
  9. .
  10. w
  11. q
  12. END_OF_GROT
  13.  
  14. set CondorMaster='condor_master'
  15. set CondorDaemons='condor_master|start_d|sched_d|negotiator|collector'
  16.  
  17. set pid=`ps ax | egrep $CondorMaster | fgrep -v egrep | awk '{ print $1 }'`
  18.  
  19. if ( "$pid" != "" ) then
  20.     echo About to kill -QUIT $pid on `hostname`
  21.     kill -QUIT $pid
  22. endif
  23.  
  24. #
  25. #    Check to make sure that we got rid of Condor
  26. #
  27. sleep 5
  28. set pid=`ps ax | egrep $CondorDaemons | fgrep -v egrep | awk '{ print $1 }'`
  29.  
  30. if ( "$pid" != "" ) then
  31.     echo "Warning: Some Condor daemons on `hostname` did not seem to die."
  32.     echo "Check on process(es): $pid"
  33. else
  34.     echo "All condor processes have been terminated."
  35. endif
  36.