Advertise the main PID through sd_notify on startup

This commit is contained in:
Quentin Gliech
2025-01-28 14:27:57 +01:00
parent 88de377b42
commit 6aa2e366cc
+2
View File
@@ -86,6 +86,8 @@ impl LifecycleManager {
let timeout = Duration::from_secs(60);
let task_tracker = TaskTracker::new();
notify(&[sd_notify::NotifyState::MainPid(std::process::id())]);
Ok(Self {
hard_shutdown_token,
soft_shutdown_token,