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:
Remi Bergsma 2015-04-01 19:45:16 +02:00
parent c05e37b28d
commit 2b41f98346

View File

@ -155,7 +155,7 @@ then
exit 0
elif [ "$cflag" == "1" ]
then
reboot
echo b > /proc/sysrq-trigger
exit $?
else
write_hbLog