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();
    }
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
Get pid by program name