restart error handler

This commit is contained in:
Serghey Rodin 2014-02-06 11:11:45 +02:00
commit 477934825c
66 changed files with 297 additions and 9 deletions

View file

@ -56,6 +56,7 @@ if [ $? -ne 0 ]; then
/etc/init.d/$DNS_SYSTEM restart >/dev/null 2>&1
if [ $? -ne 0 ]; then
send_email_report
echo "Error: $DNS_SYSTEM restart failed"
exit $E_RESTART
fi
fi