mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore(deps): Update sd-notify
This commit is contained in:
+2
-2
@@ -73,7 +73,7 @@ pub(crate) async fn start(server: Arc<Server>) -> Result<Arc<Services>> {
|
|||||||
let services = Services::build(server).await?.start().await?;
|
let services = Services::build(server).await?.start().await?;
|
||||||
|
|
||||||
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
||||||
sd_notify::notify(false, &[sd_notify::NotifyState::Ready])
|
sd_notify::notify(&[sd_notify::NotifyState::Ready])
|
||||||
.expect("failed to notify systemd of ready state");
|
.expect("failed to notify systemd of ready state");
|
||||||
|
|
||||||
debug!("Started");
|
debug!("Started");
|
||||||
@@ -86,7 +86,7 @@ pub(crate) async fn stop(services: Arc<Services>) -> Result<()> {
|
|||||||
debug!("Shutting down...");
|
debug!("Shutting down...");
|
||||||
|
|
||||||
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
||||||
sd_notify::notify(false, &[sd_notify::NotifyState::Stopping])
|
sd_notify::notify(&[sd_notify::NotifyState::Stopping])
|
||||||
.expect("failed to notify systemd of stopping state");
|
.expect("failed to notify systemd of stopping state");
|
||||||
|
|
||||||
// Wait for all completions before dropping or we'll lose them to the module
|
// Wait for all completions before dropping or we'll lose them to the module
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ impl Deref for Service {
|
|||||||
fn handle_reload(&self) -> Result {
|
fn handle_reload(&self) -> Result {
|
||||||
if self.server.config.config_reload_signal {
|
if self.server.config.config_reload_signal {
|
||||||
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
||||||
sd_notify::notify(false, &[
|
sd_notify::notify(&[
|
||||||
sd_notify::NotifyState::Reloading,
|
sd_notify::NotifyState::Reloading,
|
||||||
sd_notify::NotifyState::monotonic_usec_now().expect("Failed to read monotonic time"),
|
sd_notify::NotifyState::monotonic_usec_now().expect("Failed to read monotonic time"),
|
||||||
])
|
])
|
||||||
@@ -80,7 +80,7 @@ fn handle_reload(&self) -> Result {
|
|||||||
self.reload(&config_paths)?;
|
self.reload(&config_paths)?;
|
||||||
|
|
||||||
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
#[cfg(all(feature = "systemd", target_os = "linux"))]
|
||||||
sd_notify::notify(false, &[sd_notify::NotifyState::Ready])
|
sd_notify::notify(&[sd_notify::NotifyState::Ready])
|
||||||
.expect("failed to notify systemd of ready state");
|
.expect("failed to notify systemd of ready state");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user