microsoft / IIS.ServiceMonitor

An entrypoint process for running IIS in Windows containers
MIT License
126 stars 42 forks source link

Environment variables are not set #74

Open iskiselev opened 3 years ago

iskiselev commented 3 years ago

Periodically, I see that IIS application starts without environment variables set on docker container. After careful validation, I see correct environment variables in settings, but not in the app hosted on IIS. Can it be some race condition if app pool started before ServiceMonitor updates environment variables?

iskiselev commented 3 years ago

I've just verified, that stopping w3svc service will not result in stopping w3wp processes - so indeed, there is a race condition with app pool start.