src/SupervisorProcess.php
public function getPidByProgramName($name)
    {
        $process = new Process(sprintf('supervisorctl pid %s', $name));
        $process->run();

        return $process->getOutput();
    }
public function getPidByProgramName($name)
    {
        $process = new Process(sprintf('supervisorctl pid %s', $name));
        $process->run();

        return $process->getOutput();
    }
Get pid by program name

@param string $name

@return string