diff --git a/src/api2/node/services.rs b/src/api2/node/services.rs index 945ddb05..8ecb6dc1 100644 --- a/src/api2/node/services.rs +++ b/src/api2/node/services.rs @@ -190,8 +190,8 @@ fn run_service_command(service: &str, cmd: &str) -> Result { _ => bail!("unknown service command '{}'", cmd), } - if service == "proxmox-backup" && cmd != "restart" { - bail!("invalid service cmd '{} {}'", service, cmd); + if service == "proxmox-backup" && cmd == "stop" { + bail!("invalid service cmd '{} {}' cannot stop essential service!", service, cmd); } let real_service_name = real_service_name(service);