改名
This commit is contained in:
@@ -22,6 +22,9 @@ class Shutdown extends Component
|
|||||||
private string $processDirectory;
|
private string $processDirectory;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
$this->taskDirectory = storage(null, 'pid/task');
|
$this->taskDirectory = storage(null, 'pid/task');
|
||||||
@@ -90,6 +93,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($output, $code);
|
||||||
if (empty($output)) {
|
if (empty($output)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user