From 0540f213f1624341469348ebedd5817471d16a8d Mon Sep 17 00:00:00 2001 From: damocles Date: Sun, 24 May 2026 13:03:31 +0200 Subject: [PATCH] lifecycle: use nixos-container restart for the running case (mara@#372) --- hive-c0re/src/lifecycle.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hive-c0re/src/lifecycle.rs b/hive-c0re/src/lifecycle.rs index 472867f..bff0965 100644 --- a/hive-c0re/src/lifecycle.rs +++ b/hive-c0re/src/lifecycle.rs @@ -348,8 +348,7 @@ pub async fn rebuild_no_meta( systemd_daemon_reload().await?; run(&["update", &container, "--flake", &flake_ref]).await?; if was_running { - run(&["stop", &container]).await?; - run(&["start", &container]).await + run(&["restart", &container]).await } else if is_running(name).await { run(&["stop", &container]).await } else {