mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Allow quick restarting of nginx
It can occur if domain has many aliases, and acme-challenge should be added many times
This commit is contained in:
parent
559368818b
commit
f596022b80
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ else
|
|||
|
||||
# Default behaviour
|
||||
# Restart system
|
||||
service $PROXY_SYSTEM restart >/dev/null 2>&1
|
||||
# service $PROXY_SYSTEM restart > /dev/null 2>&1
|
||||
systemctl reset-failed $PROXY_SYSTEM
|
||||
systemctl restart $PROXY_SYSTEM > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
check_result $E_RESTART "$PROXY_SYSTEM restart failed"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue