mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 13:54:26 -07:00
restart error handler
This commit is contained in:
parent
42dfa03258
commit
477934825c
66 changed files with 297 additions and 9 deletions
|
@ -372,7 +372,15 @@ if [ "$web" != 'no' ]; then
|
|||
|
||||
# Restart WEB
|
||||
$BIN/v-restart-web
|
||||
if [ $? -ne 0 ]; then
|
||||
exit E_RESTART
|
||||
fi
|
||||
|
||||
$BIN/v-restart-proxy
|
||||
if [ $? -ne 0 ]; then
|
||||
exit E_RESTART
|
||||
fi
|
||||
|
||||
echo
|
||||
msg="$msg\n"
|
||||
fi
|
||||
|
@ -482,6 +490,10 @@ if [ "$dns" != 'no' ]; then
|
|||
|
||||
# Restart DNS
|
||||
$BIN/v-restart-dns
|
||||
if [ $? -ne 0 ]; then
|
||||
exit E_RESTART
|
||||
fi
|
||||
|
||||
echo
|
||||
msg="$msg\n"
|
||||
fi
|
||||
|
@ -695,6 +707,10 @@ if [ "$cron" != 'no' ]; then
|
|||
|
||||
# Restart cron
|
||||
$BIN/v-restart-cron
|
||||
if [ $? -ne 0 ]; then
|
||||
exit E_RESTART
|
||||
fi
|
||||
|
||||
echo
|
||||
msg="$msg\n"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue