Skip to content

Testing responding to SigTerm in a Linux docker container

License

Notifications You must be signed in to change notification settings

akash-geon/DotNetSigTermTest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Core SIGTERM Test

While watching this video from dockercon sf 18, I learned that handling SIGTERM correctly is important in container applications.

This stackoverflow answer had some good information.

This repo tests the above approach in a trivial .NET Core container application. The key is to handle the AppDomain.CurrentDomain.ProcessExit event.

About

Testing responding to SigTerm in a Linux docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 54.0%
  • Dockerfile 46.0%