modify
This commit is contained in:
@@ -86,8 +86,7 @@ class Shutdown extends Component
|
|||||||
}
|
}
|
||||||
$shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep';
|
$shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep';
|
||||||
exec(sprintf($shell, $content), $output, $code);
|
exec(sprintf($shell, $content), $output, $code);
|
||||||
var_dump(sprintf($shell, $content), $output, $code);
|
if (empty($output)) {
|
||||||
if (empty($content)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user