/** * @return bool If the process is already running */ private function isProcessAlreadyRunning() { if ($this->shell->file_exists($this->pidFileLocation)) { $this->originalPid = $this->shell->file_get_contents($this->pidFileLocation); return $this->doesPidExistInRunningProcessesList(); } return false; }