We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f03077c commit 3b91dffCopy full SHA for 3b91dff
build/Packaging/NugetAzureCloudServices/content/newrelic.cmd
@@ -54,9 +54,9 @@ IF %NR_ERROR_LEVEL% EQU 0 (
54
:: if we are in a Worker Role then there is no need to restart W3SVC _or_
55
:: if we are emulating locally then do not restart W3SVC
56
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
+ ECHO Restarting IIS to pick up the new environment variables. >> "%RoleRoot%\nr-%NR_INSTALLID%.log" 2>&1
+ IISRESET /STOP
+ IISRESET /START
60
)
61
62
IF %ERRORLEVEL% EQU 0 (
0 commit comments