Close the HttpServer on process TERM signals.
Motivation
You can run the shelf server in docker containers.
Because of the Dart compiler can generate single binary executables, you can get very small docker container images. It is good.
There is one problem that that containers do not shutdown smooth on docker controller's termination signal.
This library helps to do that.
Usage
var server = await shelf_io.serve(handler, 'localhost', 8080);
await server.closeOnTermSignal();
See example
folder for more details.
Libraries
- shelf_docker_shutdown
- Close the HttpServer on process TERM signals.