Skip to content

Commit

Permalink
waiting for mariadbd to be active
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Sep 20, 2024
1 parent e8f9336 commit e374df1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msnoise_db/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def start_server():
stderr=subprocess.PIPE)
else:
mysqld_cmd = os.path.join(bin_dir, "mariadbd-safe")
process = subprocess.Popen([mysqld_cmd, '--defaults-file='+ CONFIG_FILE], stdout=subprocess.PIPE,
stderr=subprocess.PIPE, preexec_fn=os.setpgrp)
process = subprocess.Popen([mysqld_cmd, '--defaults-file='+ CONFIG_FILE], stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL, preexec_fn=os.setpgrp)
# os.system(mysqld_cmd + " --defaults-file="+CONFIG_FILE+ "&")
if process.returncode:
print(process.stdout.read())
Expand Down

0 comments on commit e374df1

Please sign in to comment.