License (AGPL-3.0) and graceful shutdown
All checks were successful
CI / check (push) Successful in 3m48s

Add the AGPL-3.0 license (matching Orbit) and set it in Cargo.toml so
the crate metadata is complete. Handle SIGTERM/Ctrl-C: the run loop now
selects against a shutdown signal and exits cleanly, so systemctl stop
returns promptly instead of waiting out the kill timeout (every event is
already fsync'd, so nothing is lost either way). Verified: on SIGTERM the
daemon logs and exits 0.
This commit is contained in:
Jean Chevronnet 2026-07-15 12:05:39 +00:00
parent e551a01cbf
commit 9ed40a2e7f
No known key found for this signature in database
3 changed files with 697 additions and 2 deletions

View file

@ -25,6 +25,7 @@ name = "echo"
version = "0.0.1"
edition = "2021"
description = "Federated IRC services daemon (protocol-agnostic core, InspIRCd link first)"
license = "AGPL-3.0-or-later"
[dependencies]
echo-api = { path = "api" }
@ -43,7 +44,7 @@ echo-reportserv = { path = "modules/reportserv" }
echo-groupserv = { path = "modules/groupserv" }
echo-chanfix = { path = "modules/chanfix" }
echo-helpserv = { path = "modules/helpserv" }
tokio = { version = "1", features = ["net", "io-util", "rt-multi-thread", "macros", "time", "sync", "process"] }
tokio = { version = "1", features = ["net", "io-util", "rt-multi-thread", "macros", "time", "sync", "process", "signal"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"