fix: point hivectl agents at the correct host socket path

hivectl's DEFAULT_HOST_SOCKET was /run/hive/host.sock, but hive-c0re binds
/run/hyperhive/host.sock (main.rs default + startup log). The doc comment
even claimed it matched hive-c0re's default — it didn't. So 'hivectl agents
restart' / 'restart-all' failed with 'connect to /run/hive/host.sock: No such
file or directory' unless the operator passed --socket explicitly.

Point the default at /run/hyperhive/host.sock.
This commit is contained in:
atlas 2026-06-05 09:55:24 +02:00
commit b411a81c1a

View file

@ -246,8 +246,10 @@ enum GatewayCmd {
},
}
/// Default host admin socket path (same as `hive-c0re`'s default).
const DEFAULT_HOST_SOCKET: &str = "/run/hive/host.sock";
/// Default host admin socket path. Must match `hive-c0re`'s default in
/// `main.rs` (`/run/hyperhive/host.sock`) — the daemon binds there and
/// `hivectl agents` connects to it.
const DEFAULT_HOST_SOCKET: &str = "/run/hyperhive/host.sock";
#[derive(Subcommand)]
enum AgentsCmd {