support reloading config via SIGUSR1

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-28 20:55:28 +00:00
parent a567e314e9
commit 2f449ba47d
7 changed files with 75 additions and 10 deletions

View file

@ -1742,6 +1742,13 @@ pub struct Config {
#[serde(default = "true_fn")]
pub listening: bool,
/// Enables configuration reload when the server receives SIGUSR1 on
/// supporting platforms.
///
/// default: true
#[serde(default = "true_fn")]
pub config_reload_signal: bool,
#[serde(flatten)]
#[allow(clippy::zero_sized_map_values)]
// this is a catchall, the map shouldn't be zero at runtime