Skip to content

Commit 6aa2e36

Browse files
committed
Advertise the main PID through sd_notify on startup
1 parent 88de377 commit 6aa2e36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/cli/src/lifecycle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ impl LifecycleManager {
8686
let timeout = Duration::from_secs(60);
8787
let task_tracker = TaskTracker::new();
8888

89+
notify(&[sd_notify::NotifyState::MainPid(std::process::id())]);
90+
8991
Ok(Self {
9092
hard_shutdown_token,
9193
soft_shutdown_token,

0 commit comments

Comments
 (0)