mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-11 17:31:46 +00:00
add global var to indicate server shutdown requests
This commit is contained in:
parent
c76ceea941
commit
edc588857e
@ -200,7 +200,10 @@ where
|
|||||||
});
|
});
|
||||||
|
|
||||||
Ok(service.select(signal_handler)
|
Ok(service.select(signal_handler)
|
||||||
.map(|_| log::info!("daemon shutting down..."))
|
.map(|_| {
|
||||||
.map_err(|_| ())
|
log::info!("daemon shutting down...");
|
||||||
|
crate::tools::request_shutdown();
|
||||||
|
})
|
||||||
|
.map_err(|_| ())
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user