mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Get the pid from the .pid file and not using pidof
This commit is contained in:
parent
f0e1c4387f
commit
4a6e1ccf23
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue