Skip to content

Commit

Permalink
linux improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Sep 19, 2024
1 parent 7fd09fd commit cb9e56c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msnoise_db/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ def start_server():
data_dir = os.path.join(mariadb_dir, 'data')
if system == "Windows":
mysqld_cmd = os.path.join(bin_dir, 'mariadbd')
process = subprocess.Popen([mysqld_cmd, '--defaults-file', CONFIG_FILE], stdout=subprocess.PIPE,
process = subprocess.Popen([mysqld_cmd, '--defaults-file='+ CONFIG_FILE], stdout=subprocess.PIPE,
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)

print(process.stdout.read())
print(process.stderr.read())
with open(PID_FILE, 'w') as f:
f.write(str(process.pid))
Expand Down

0 comments on commit cb9e56c

Please sign in to comment.