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

@ -101,7 +101,14 @@ decrease_user_value "$user" '$U_WEB_ALIASES'
# Restart web server
if [ "$restart" != 'no' ]; then
$BIN/v-restart-web
if [ $? -ne 0 ]; then
exit E_RESTART
fi
$BIN/v-restart-proxy
if [ $? -ne 0 ]; then
exit E_RESTART
fi
fi
# Logging