Thursday, September 21, 2006

Fast shutdown except when Oracle's running

To shutdown labs in a hurry, this command will immediatly halt anything not running oracle and cleanly shutdown oracle
ps -ef | grep [o]ra || /usr/sbin/reboot -qh; init 0; tail -f /etc/rc.log

No comments: