Skip to main contentModule run
Source use std::env::var_os; π use std::sync::Arc; π use std::sync::Weak; π use std::sync::atomic::Ordering; π use std::time::Duration; π use futures::FutureExt; π use futures::future::join; π use futures::pin_mut; π use sd_notify::NotifyState; π use sd_notify::notify; π use sd_notify::notify_and_unset_env; π use sd_notify::watchdog_enabled; π use tokio::time::MissedTickBehavior; π use tokio::time::interval; π use tuwunel_core::Error; π use tuwunel_core::Result; π use tuwunel_core::Server; π use tuwunel_core::debug; π use tuwunel_core::debug; π use tuwunel_core::debug_error; π use tuwunel_core::debug_info; π use tuwunel_core::defer; π use tuwunel_core::error; π use tuwunel_core::error; π use tuwunel_core::info; π use tuwunel_core::info; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::warn; π use tuwunel_service::Services; π use crate::handle::ServerHandle; π use crate::serve; π
- STARTUP_INTERVAL π
- How often startup reports its progress and extends the service managerβs
timeout.
- handle_services_finish π
- handle_shutdown π
- notify_systemd π
- Sends notification states to the service manager.
- notify_systemd_shutdown π
- notify_systemd_startup π
- Extends the service managerβs timeout by another interval and reports what
the server is waiting on.
- report_startup_progress π
- Reports the long startup phase in flight and keeps the service manager
waiting for it.
- run π
- Main loop base
- signal π
- start π
- Async initializations
- start_systemd_watchdog π
- stop π
- Async destructions