// fixme: run background worker (fork_worker) ???
- match cmd {
- "start"|"stop"|"restart"|"reload" => {},
+ let cmd = match cmd {
+ "start"|"stop"|"restart"=> cmd,
+ "reload" => "try-reload-or-restart", // some services do not implement reload
_ => bail!("unknown service command '{}'", cmd),
- }
+ };
if service == "proxmox-backup" && cmd == "stop" {
bail!("invalid service cmd '{} {}' cannot stop essential service!", service, cmd);
xtype: 'proxmoxNodeServiceView',
title: gettext('Services'),
itemId: 'services',
+ restartCommand: 'reload', // avoid disruptions
startOnlyServices: {
syslog: true,
'proxmox-backup': true,