提交 3ac837fc authored 作者: Serhij S's avatar Serhij S

sigusr2 docs

上级 fe2df39f
......@@ -189,7 +189,10 @@ where
pub fn register_signals(&mut self, shutdown_timeout: Duration) -> Result<()> {
self.register_signals_with_handlers(|_| {}, |_| Ok(()), shutdown_timeout)
}
/// Registers SIGINT and SIGTERM signals to a thread which terminates the controller.
/// Registers SIGINT, SIGUSR2 and SIGTERM signals to a thread which terminates the controller.
///
/// The signals SIGINT and SIGTERM are used to gracefully terminate the controller. The SIGUSR2
/// signal is used to perform a live reload of the executable.
///
/// Note: to properly terminate all workers must either periodically check the controller state
/// with [`Context::is_online()`] or be marked as blocking by overriding
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论