From 3b91dff0ad9aa2fc4218cd85d28fb6d0892cc7fb Mon Sep 17 00:00:00 2001 From: Marty Tippin <120425148+tippmar-nr@users.noreply.github.com> Date: Fri, 23 Jun 2023 13:13:53 -0500 Subject: [PATCH] fix: Update install script to correctly stop and restart IIS. (#1740) --- .../Packaging/NugetAzureCloudServices/content/newrelic.cmd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Packaging/NugetAzureCloudServices/content/newrelic.cmd b/build/Packaging/NugetAzureCloudServices/content/newrelic.cmd index 2a7cdfac7..9ade047d1 100644 --- a/build/Packaging/NugetAzureCloudServices/content/newrelic.cmd +++ b/build/Packaging/NugetAzureCloudServices/content/newrelic.cmd @@ -54,9 +54,9 @@ IF %NR_ERROR_LEVEL% EQU 0 ( :: if we are in a Worker Role then there is no need to restart W3SVC _or_ :: if we are emulating locally then do not restart W3SVC IF "%IsWorkerRole%" EQU "false" ( - ECHO Restarting IIS and W3SVC to pick up the new environment variables. >> "%RoleRoot%\nr-%NR_INSTALLID%.log" 2>&1 - IISRESET - NET START W3SVC + ECHO Restarting IIS to pick up the new environment variables. >> "%RoleRoot%\nr-%NR_INSTALLID%.log" 2>&1 + IISRESET /STOP + IISRESET /START ) IF %ERRORLEVEL% EQU 0 (