Skip to content
Snippets Groups Projects
Commit d1c21db4 authored by Jawayria's avatar Jawayria
Browse files

Resolved error

parent 69e0dc7d
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ def is_mysql_running():
"""
# We need to check whether or not mysql is running as a process
# even if it is not daemonized.
with open(os.devnull, 'w') as os_devnull: # lint-amnesty, pylint: disable=W6005, bad-option-value
with open(os.devnull, 'w') as os_devnull: # lint-amnesty, pylint: disable=bad-option-value
#pgrep returns the PID, which we send to /dev/null
returncode = subprocess.call("pgrep mysqld", stdout=os_devnull, shell=True)
return returncode == 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment