From 12345004ddd2e9f99cdc927e9ca4d006e7b94a64 Mon Sep 17 00:00:00 2001 From: ami44 Date: Sat, 30 Dec 2017 16:10:00 +0100 Subject: [PATCH] add README examples/signals --- examples/signals/README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/examples/signals/README.md b/examples/signals/README.md index 0d2597fed..4dde40273 100644 --- a/examples/signals/README.md +++ b/examples/signals/README.md @@ -1,4 +1,17 @@ - # Signals This example shows how to handle unix signals and properly stop http server + +## Usage + +```bash +cd actix-web/examples/signal +cargo run (or ``cargo watch -x run``) +# Started http server: 127.0.0.1:8080 +# CTRL+C +# INFO:actix_web::server: SIGINT received, exiting +# INFO:actix_web::worker: Shutting down http worker, 0 connections +# INFO:actix_web::worker: Shutting down http worker, 0 connections +# INFO:actix_web::worker: Shutting down http worker, 0 connections +# INFO:actix_web::worker: Shutting down http worker, 0 connections +``` \ No newline at end of file