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 >
Wrap
Text File
|
1989-05-09
|
870b
|
36 lines
#!/bin/csh -f
set E=`grep ^START_DAEMONS ~condor/condor_config.local >& /dev/null`
if ( $status != 0 ) echo START_DAEMONS >> ~condor/condor_config.local
ed - ~condor/condor_config.local << END_OF_GROT
/^START_DAEMONS/c
START_DAEMONS = False
.
w
q
END_OF_GROT
set CondorMaster='condor_master'
set CondorDaemons='condor_master|start_d|sched_d|negotiator|collector'
set pid=`ps ax | egrep $CondorMaster | fgrep -v egrep | awk '{ print $1 }'`
if ( "$pid" != "" ) then
echo About to kill -QUIT $pid on `hostname`
kill -QUIT $pid
endif
#
# Check to make sure that we got rid of Condor
#
sleep 5
set pid=`ps ax | egrep $CondorDaemons | fgrep -v egrep | awk '{ print $1 }'`
if ( "$pid" != "" ) then
echo "Warning: Some Condor daemons on `hostname` did not seem to die."
echo "Check on process(es): $pid"
else
echo "All condor processes have been terminated."
endif