v-restart-proxy sleep 1

This commit is contained in:
dpeca 2018-04-26 16:59:54 +02:00 committed by GitHub
commit b329be0352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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