Fixing property for pid_file from "mysqladmin --print-defaults"
This will correctly report the status of the mysql process where the pid file is not in the default location bug 1096212 Change-Id: Iab83b1c1c67baed7473373f978691d5895e5f4f0
This commit is contained in:
parent
cbe81d1461
commit
f60bda25dc
|
@ -18,3 +18,5 @@ rdtest.log
|
|||
reddwarf/versioninfo
|
||||
AUTHORS
|
||||
Changelog
|
||||
reddwarf.iml
|
||||
atlassian-ide-plugin.xml
|
||||
|
|
|
@ -198,7 +198,7 @@ class MySqlAppStatus(object):
|
|||
except ProcessExecutionError as e:
|
||||
if not MYSQLD_ARGS:
|
||||
MYSQLD_ARGS = load_mysqld_options()
|
||||
pid_file = MYSQLD_ARGS.get('pid-file',
|
||||
pid_file = MYSQLD_ARGS.get('pid_file',
|
||||
'/var/run/mysqld/mysqld.pid')
|
||||
if os.path.exists(pid_file):
|
||||
LOG.info("Service Status is CRASHED.")
|
||||
|
|
Loading…
Reference in New Issue