src/Daemon/Service.php
protected function getServiceInfo($instance = null)
    {
        $file = $this->runDir . 'service-info.php';
        $info = is_file($file) ? include($file) : [];
        return $instance ? fnGet($info, $instance, []) : $info;
    }
protected function getServiceInfo($instance = null)
    {
        $file = $this->runDir . 'service-info.php';
        $info = is_file($file) ? include($file) : [];
        return $instance ? fnGet($info, $instance, []) : $info;
    }
protected function getServiceInfo ( $ instance = null ) { $ file = $ this -> runDir . 'service-info.php' ; $ info = is_file ( $ file ) ? include ( $ file ) : [ ] ; return $ instance ? fnGet ( $ info , $ instance , [ ] ) : $ info ; }
Get service info, including pid, manager pid and port

@param string $instance Specify instance name (e.g. "current", "old").
If not specified, return combined info of all instances.
@return array An array containing service info
Get service info including pid manager pid and port