pub async fn shutdown_signal() -> Result<()>
Wait for a process shutdown signal.
On Unix this treats SIGTERM the same as Ctrl+C so long-lived services can drain gracefully when stopped by process supervisors.
SIGTERM
Ctrl+C