Skip to content

phpfpm: Add support for pm.status_listen #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion amplify/ext/phpfpm/util/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def _get_value(line):
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):
"""
Expand Down Expand Up @@ -179,7 +183,9 @@ def _parse_structure(self):
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
Expand Down