From 4e45617bd9ea2e2c6944f3d824403d20fa9526b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Apr 2026 10:43:25 +0000 Subject: [PATCH 1/2] Initial plan From 52ce3c7a237562ea9b90f97287897db041024e35 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Apr 2026 10:45:05 +0000 Subject: [PATCH 2/2] chore: remove unmaintained daemonize crate (RUSTSEC-2025-0069) Agent-Logs-Url: https://github.com/100monkeys-ai/aegis-orchestrator/sessions/d9a9c56b-b68e-416f-91b2-4443f08698e2 Co-authored-by: Theaxiom <57013+Theaxiom@users.noreply.github.com> --- cli/Cargo.toml | 1 - cli/src/daemon/server.rs | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 3e794821..e7cfbe3a 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -83,7 +83,6 @@ prost = { workspace = true } # Platform-specific daemon support [target.'cfg(unix)'.dependencies] -daemonize = "0.5" libc = "0.2" [package.metadata.docs.rs] diff --git a/cli/src/daemon/server.rs b/cli/src/daemon/server.rs index 1b126cfc..de1550ca 100644 --- a/cli/src/daemon/server.rs +++ b/cli/src/daemon/server.rs @@ -166,17 +166,6 @@ fn temporal_connection_max_retries(raw_value: Option) -> i32 { // cluster_status_view, load_cluster_nodes moved to cluster_helpers.rs pub async fn start_daemon(config_path: Option, port: u16) -> Result<()> { - // Daemonize on Unix - // NOTE: We skip internal daemonization because calling fork() (via daemonize) - // inside a Tokio runtime (#[tokio::main]) breaks the reactor. - // The CLI 'daemon start' command already spawns this process as a detached background child. - /* - #[cfg(unix)] - { - daemonize_process()?; - } - */ - // Write PID file let pid = std::process::id(); write_pid_file(pid)?;