Unset NOTIFY_SOCKET so it's not inherited

This commit is contained in:
Ivan Molodetskikh
2023-08-27 10:33:58 +04:00
parent e09a6d6392
commit dd5bcde581
2 changed files with 1 additions and 7 deletions
-6
View File
@@ -20,7 +20,6 @@ use std::ffi::OsString;
use backend::Backend; use backend::Backend;
use clap::Parser; use clap::Parser;
use niri::Niri; use niri::Niri;
use sd_notify::NotifyState;
use smithay::reexports::calloop::EventLoop; use smithay::reexports::calloop::EventLoop;
use smithay::reexports::wayland_server::{Display, DisplayHandle}; use smithay::reexports::wayland_server::{Display, DisplayHandle};
use tracing_subscriber::EnvFilter; use tracing_subscriber::EnvFilter;
@@ -123,9 +122,4 @@ fn main() {
} }
}) })
.unwrap(); .unwrap();
// Tell systemd we're stopping.
if let Err(err) = sd_notify::notify(false, &[NotifyState::Stopping]) {
warn!("error notifying systemd: {err:?}");
}
} }
+1 -1
View File
@@ -185,7 +185,7 @@ impl Niri {
zbus_conn = Some(conn); zbus_conn = Some(conn);
// Notify systemd we're ready. // Notify systemd we're ready.
if let Err(err) = sd_notify::notify(false, &[NotifyState::Ready]) { if let Err(err) = sd_notify::notify(true, &[NotifyState::Ready]) {
warn!("error notifying systemd: {err:?}"); warn!("error notifying systemd: {err:?}");
}; };
} }