Commit 39e68b2b authored by Dietmar Maurer's avatar Dietmar Maurer

use PVE::RPCEnvironment::check_worker() to impl. stop_task

parent 217e32e3
......@@ -179,11 +179,7 @@ __PACKAGE__->register_method({
die "Permission check failed\n"
if !($sysadmin || $user eq $task->{user});
my $pstart = PVE::ProcFSTools::read_proc_starttime($task->{pid});
$task->{status} = ($pstart && ($pstart == $task->{pstart})) ?
'running' : 'stopped';
die "not implemented - fixme";
PVE::RPCEnvironment::check_worker($param->{upid}, 1);
return undef;
}});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment