Skip to content

Commit 3b91dff

Browse files
authored
fix: Update install script to correctly stop and restart IIS. (#1740)
1 parent f03077c commit 3b91dff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/Packaging/NugetAzureCloudServices/content/newrelic.cmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ IF %NR_ERROR_LEVEL% EQU 0 (
5454
:: if we are in a Worker Role then there is no need to restart W3SVC _or_
5555
:: if we are emulating locally then do not restart W3SVC
5656
IF "%IsWorkerRole%" EQU "false" (
57-
ECHO Restarting IIS and W3SVC to pick up the new environment variables. >> "%RoleRoot%\nr-%NR_INSTALLID%.log" 2>&1
58-
IISRESET
59-
NET START W3SVC
57+
ECHO Restarting IIS to pick up the new environment variables. >> "%RoleRoot%\nr-%NR_INSTALLID%.log" 2>&1
58+
IISRESET /STOP
59+
IISRESET /START
6060
)
6161

6262
IF %ERRORLEVEL% EQU 0 (

0 commit comments

Comments
 (0)