TIL 1주차 월요일 - laravel의 리눅스 command 실행 방법 - laravel queue 상태 테스트 코드 $command = "php artisan queue:work"; // 실행한 명령어를 저장할 변수 $output = array(); // 명령어를 실행하고 결과를 $output 배열에 저장 exec("ps -p $this->pid -o command", $output); // $output 배열을 검사하여 해당 프로세스가 데몬으로 실행 중인지 확인 $isDaemon = false; foreach ($output as $line) { if (strpos($line, $command) !== false) { $isDaemon = true; break; } } if ($isDaemon) {..