Skip to content

Commit

Permalink
fix: Update install script to correctly stop and restart IIS. (#1740)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Jun 23, 2023
1 parent f03077c commit 3b91dff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/Packaging/NugetAzureCloudServices/content/newrelic.cmd
Expand Up @@ -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 (
Expand Down

0 comments on commit 3b91dff

Please sign in to comment.