Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update install script to correctly stop and restart IIS. #1740

Merged
merged 1 commit into from
Jun 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Loading