reload nginx instead restart

This commit is contained in:
dpeca 2018-04-11 01:01:44 +02:00 committed by GitHub
commit e6b01fbd7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ if [ -z "$PROXY_SYSTEM" ] || [ "$PROXY_SYSTEM" = 'remote' ]; then
fi
# Restart system
service $PROXY_SYSTEM restart >/dev/null 2>&1
service $PROXY_SYSTEM reload >/dev/null 2>&1
if [ $? -ne 0 ]; then
send_email_report
check_result $E_RESTART "$PROXY_SYSTEM restart failed"