This commit is contained in:
as2252258@163.com
2021-03-28 16:29:41 +08:00
parent 1ea5086d4e
commit 0bcdce1112
+1 -2
View File
@@ -86,8 +86,7 @@ class Shutdown extends Component
}
$shell = 'ps -eo pid,cmd,state | grep %d | grep -v grep';
exec(sprintf($shell, $content), $output, $code);
var_dump(sprintf($shell, $content), $output, $code);
if (empty($content)) {
if (empty($output)) {
return false;
}
return true;