reload nginx if necessary