phpfpm: Add support for pm.status_listen
php 8.0 added a new option pm.status_listen that allows getting the status from a different endpoint.
See: 44c7128fb7
pull/90/head
parent
3df258e7f5
commit
0dbb8d62e9
|
@ -127,6 +127,10 @@ class PHPFPMConfig(object):
|
||||||
self._structure[context]['pm.status_path'].append(
|
self._structure[context]['pm.status_path'].append(
|
||||||
_get_value(line)
|
_get_value(line)
|
||||||
)
|
)
|
||||||
|
elif line.startswith('pm.status_listen'):
|
||||||
|
self._structure[context]['pm.status_listen'].append(
|
||||||
|
_get_value(line)
|
||||||
|
)
|
||||||
|
|
||||||
def _find_includes(self):
|
def _find_includes(self):
|
||||||
"""
|
"""
|
||||||
|
@ -179,7 +183,9 @@ class PHPFPMConfig(object):
|
||||||
for pool_name in pool_names:
|
for pool_name in pool_names:
|
||||||
# Get first found value for interesting directives. If there are
|
# Get first found value for interesting directives. If there are
|
||||||
# no found directives just set to None
|
# no found directives just set to None
|
||||||
listen = self._structure[pool_name]['listen'][0] \
|
listen = self._structure[pool_name]['pm.status_listen'][0] \
|
||||||
|
if len(self._structure[pool_name]['pm.status_listen']) else \
|
||||||
|
self._structure[pool_name]['listen'][0] \
|
||||||
if len(self._structure[pool_name]['listen']) else None
|
if len(self._structure[pool_name]['listen']) else None
|
||||||
status_path = self._structure[pool_name]['pm.status_path'][0] \
|
status_path = self._structure[pool_name]['pm.status_path'][0] \
|
||||||
if len(self._structure[pool_name]['pm.status_path']) else None
|
if len(self._structure[pool_name]['pm.status_path']) else None
|
||||||
|
|
Loading…
Reference in New Issue