mirror of
https://github.com/actix/actix-web.git
synced 2024-12-16 05:06:33 +00:00
add README examples/signals
This commit is contained in:
parent
a1a77600c6
commit
12345004dd
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
```
|
Loading…
Reference in a new issue