> ' . escapeshellarg($logFile) . ' 2>&1 < /dev/null &'; $output = []; $exitCode = 0; exec($command, $output, $exitCode); if ($exitCode !== 0) { Yii::warning('Unable to start async console command, exit code: ' . $exitCode); return false; } return true; } private static function canExec() { if (!is_callable('exec')) { return false; } $disabled = array_filter(array_map('trim', explode(',', (string)ini_get('disable_functions')))); return !in_array('exec', $disabled, true); } }