pull/90/merge
Andrea Mennillo 2025-01-15 06:30:37 +00:00 committed by GitHub
commit e71175cef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -127,6 +127,10 @@ class PHPFPMConfig(object):
self._structure[context]['pm.status_path'].append(
_get_value(line)
)
elif line.startswith('pm.status_listen'):
self._structure[context]['pm.status_listen'].append(
_get_value(line)
)
def _find_includes(self):
"""
@ -179,7 +183,9 @@ class PHPFPMConfig(object):
for pool_name in pool_names:
# Get first found value for interesting directives. If there are
# 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
status_path = self._structure[pool_name]['pm.status_path'][0] \
if len(self._structure[pool_name]['pm.status_path']) else None