Skip to content

Demonstration on how to handle SIGTERM in python.

Notifications You must be signed in to change notification settings

minditech/sigterm_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SIGTERM demo

This is an example of how to handle SIGTERM in python. It defines a function that will be called when docker stop is executed on the running container.

docker build -t mindi/sigterm_demo:latest
docker run -i --name=sigterm_demo -t mindi/sigterm_demo:latest

In another terminal:

docker stop sigterm_demo

About

Demonstration on how to handle SIGTERM in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages