[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Feature request: condor_off -peaceful -wait




Ian Chesal wrote:


Is their an obvious way to script something like:

 condor_off -peaceful
 shutdown --reboot

With a -wait option it's trivial but without it I now have to figure out
whether or not the machine is running at jobs before calling shutdown.


Yes, a -wait option would be nice. You could try scripting it something like this:


master_pid=`ps h -o pid -C condor_master`
condor_off -master -peaceful
while kill -0 $master_pid; do sleep 1; done
shutdown --reboot

--Dan