diff --git a/hive-c0re/src/priv_client.rs b/hive-c0re/src/priv_client.rs index 357d8723..51a3b646 100644 --- a/hive-c0re/src/priv_client.rs +++ b/hive-c0re/src/priv_client.rs @@ -111,14 +111,11 @@ pub async fn chmod(path: &Path, mode: u32) -> Result<()> { Ok(()) } -/// Run a command inside a machine container via `systemd-run --machine`. -pub async fn systemd_run_machine(machine: &str, cmd: Vec) -> Result<(String, String)> { - let resp = call(&PrivRequest::SystemdRunMachine { - machine: machine.to_owned(), - cmd, - }) - .await?; - check(resp) +/// Reload nginx inside `hive-gateway` via `systemd-run --machine`. +pub async fn reload_gateway_nginx() -> Result<()> { + let resp = call(&PrivRequest::ReloadGatewayNginx).await?; + check(resp)?; + Ok(()) } fn check(resp: PrivResponse) -> Result<(String, String)> {