Get the pid from the .pid file and not using pidof

This commit is contained in:
Timothée Jaussoin 2020-05-25 17:02:50 +02:00
parent f0e1c4387f
commit 4a6e1ccf23

View file

@ -27,7 +27,7 @@ class FlexisipConnector
public function __construct()
{
$pid = \trim(\shell_exec('pidof flexisip'));
$pid = file_get_contents('/var/run/flexisip-proxy.pid');
$this->_socket = stream_socket_client('unix:///tmp/flexisip-proxy-'.$pid, $errno, $errstr);
}