mirror of https://github.com/apache/cloudstack.git
reboot much faster in case of storage failure
When storage cannot be reached, it does not make sense to reboot as it will try to flush buffers, umount NFS mounts, etc. This will not work and thus cause a long delay. With this change, the box will reboot immediately (like pressing the reset button).
This commit is contained in:
parent
bf3a0d6085
commit
a92315f28c
|
|
@ -155,7 +155,7 @@ then
|
|||
exit 0
|
||||
elif [ "$cflag" == "1" ]
|
||||
then
|
||||
reboot
|
||||
echo b > /proc/sysrq-trigger
|
||||
exit $?
|
||||
else
|
||||
write_hbLog
|
||||
|
|
|
|||
Loading…
Reference in New Issue