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.
master_pid=`ps h -o pid -C condor_master` condor_off -master -peaceful while kill -0 $master_pid; do sleep 1; done shutdown --reboot