description=>"The command to execute. The only valid command for service 'apache' and 'pvedaemon' is 'restart', because both services are required by this API.",
code=>sub {
type=>'string',
my($param)=@_;
enum=>[qw(start stop restart reload)],
},
my$rpcenv=PVE::RPCEnvironment::get();
my$user=$rpcenv->get_user();
my$si=$service_list->{$param->{service}};
my$realcmd=sub {
my$upid=shift;
syslog('info',"starting service $param->{service}: $upid\n");