description=>"The command to execute. The only valid command for service 'apache' and 'pvedaemon' is 'restart', because both services are required by this API.",
type=>'string',
enum=>[qw(start stop restart reload)],
},
service=>$service_prop_desc,
},
},
returns=>{
type=>'string',
},
code=>sub {
my($param)=@_;
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");