mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
restart error handler
This commit is contained in:
parent
42dfa03258
commit
477934825c
66 changed files with 297 additions and 9 deletions
|
@ -45,13 +45,11 @@ if [ -z "$PROXY_SYSTEM" ]; then
|
|||
fi
|
||||
|
||||
# Restart system
|
||||
/etc/init.d/$PROXY_SYSTEM reload >/dev/null 2>&1
|
||||
/etc/init.d/$PROXY_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
/etc/init.d/$PROXY_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
exit $E_RESTART
|
||||
fi
|
||||
send_email_report
|
||||
echo "Error: $PROXY_SYSTEM restart failed"
|
||||
exit $E_RESTART
|
||||
fi
|
||||
|
||||
# Update restart queue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue