Coder Social home page Coder Social logo

xyt2008 / iis.servicemonitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/iis.servicemonitor

0.0 2.0 0.0 82 KB

An entrypoint process for running IIS in Windows containers

License: MIT License

Batchfile 0.25% C++ 96.40% C 3.35%

iis.servicemonitor's Introduction

Microsoft IIS Service Monitor

ServiceMonitor is a Windows executable designed to be used as the entrypoint process when running IIS inside a Windows Server container.

ServiceMonitor monitors the status of the w3svc service and will exit when the service state changes from SERVICE_RUNNING to either one of SERVICE_STOPPED, SERVICE_STOP_PENDING, SERVICE_PAUSED or SERVICE_PAUSE_PENDING.

Additionally, ServiceMonitor will promote environment variables from process environment it's own process environment block to the DefaultAppPool. We achieve this by naively copying all variables in our process environment block except for those Environment variable / value pairs present in this list below.

Environment variable exclusion list

Environment Variable Value
TMP "C:\Users\ContainerAdministrator\AppData\Local\Temp"
TEMP "C:\Users\ContainerAdministrator\AppData\Local\Temp"
USERNAME "ContainerAdministrator"
USERPROFILE "C:\Users\ContainerAdministrator"
APPDATA "C:\Users\ContainerAdministrator\AppData\Roaming"
LOCALAPPDATA "C:\Users\ContainerAdministrator\AppData\Local"
PROGRAMDATA "C:\ProgramData"
PSMODULEPATH "%ProgramFiles%\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules"
PUBLIC "C:\Users\Public"
USERDOMAIN "User Manager"
ALLUSERSPROFILE "C:\ProgramData"
PATHEXT ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
PATH *
COMPUTERNAME *
COMSPEC *
OS *
PROCESSOR_IDENTIFIER *
PROCESSOR_LEVEL *
PROCESSOR_REVISION *
PROGRAMFILES *
PROGRAMFILES(X86) *
PROGRAMW6432 *
SYSTEMDRIVE *
WINDIR *
NUMBER_OF_PROCESSORS *
PROCESSOR_ARCHITECTURE *
SYSTEMROOT *
COMMONPROGRAMFILES *
COMMONPROGRAMFILES(X86) *
COMMONPROGRAMW6432 *
DRIVERDATA *

Build

.\build.cmd

Usage

.\ServiceMonitor.exe w3svc

ServiceMonitor is currently distributed as part of the IIS, ASP.NET, and WCF images on DockerHub. We recommend layering your project on top of those official images as running ServiceMonitor directly in your Dockerfile.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

iis.servicemonitor's People

Contributors

mcy94w avatar bariscaglar avatar microsoftopensource avatar shirhatti avatar jawn avatar colmprunty avatar jimmyca15 avatar lextm avatar michha avatar msftgits avatar pharring avatar diogosalazar avatar vjgn avatar yosifkit avatar

Watchers

James Cloos avatar Headmast avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.