pull/89/merge
Andrea Mennillo 2025-01-15 06:30:38 +00:00 committed by GitHub
commit 9f0d69494d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ class MySQLManager(ExtObjectManager):
# break processing returning a fault-tolerant empty list # break processing returning a fault-tolerant empty list
return [] return []
if not any('mysqld' in line for line in ps): if not any('mysqld' or 'mariadbd' in line for line in ps):
context.log.info('no mysqld processes found') context.log.info('no mysqld processes found')
# break processing returning a fault-tolerant empty list # break processing returning a fault-tolerant empty list
@ -193,7 +193,7 @@ class MySQLManager(ExtObjectManager):
pid, ppid, cmd = parsed # unpack values pid, ppid, cmd = parsed # unpack values
# match master process # match master process
if cmd.split(' ', 1)[0].endswith('mysqld'): if cmd.split(' ', 1)[0].endswith('d'):
if not launch_method_supported("mysql", ppid): if not launch_method_supported("mysql", ppid):
continue continue

View File

@ -12,7 +12,7 @@ __maintainer__ = "Mike Belov"
__email__ = "dedm@nginx.com" __email__ = "dedm@nginx.com"
PS_CMD = "ps xao pid,ppid,command | grep -E 'mysqld( |$)'" # grep -P doesn't work on BSD systems PS_CMD = "ps xao pid,ppid,command | grep -E '(mariadb|mysql)d( |$)'" # grep -P doesn't work on BSD systems
PS_REGEX = re.compile(r'\s*(?P<pid>\d+)\s+(?P<ppid>\d+)\s+(?P<cmd>.+)\s*') PS_REGEX = re.compile(r'\s*(?P<pid>\d+)\s+(?P<ppid>\d+)\s+(?P<cmd>.+)\s*')
LS_CMD = "ls -la /proc/%s/exe" LS_CMD = "ls -la /proc/%s/exe"