Restart nginx after 20 sec

This commit is contained in:
dpeca 2018-04-16 19:56:06 +02:00 committed by GitHub
commit 40947919e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ fi
# background restart
if [ "$1" = 'background' ]; then
# Restart system
sleep 2
sleep 20
service $PROXY_SYSTEM restart >/dev/null 2>&1
if [ $? -ne 0 ]; then
send_email_report