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 committed by Daan Hoogland
parent bf3a0d6085
commit a92315f28c
1 changed files with 1 additions and 1 deletions

View File

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