1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 16:02:59 +01:00
actix-extras/examples/signals/README.md

17 lines
584 B
Markdown
Raw Normal View History

2017-12-28 20:36:20 +01:00
# Signals
2017-12-30 21:08:12 +01:00
This example shows how to handle Unix signals and properly stop http server. This example does not work with Windows.
2017-12-30 16:10:00 +01:00
## 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
```