1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

mysqld_safe: close stdout and stderr

when they're not needed anymore. Helps when
daemonizing it from mysql.init
This commit is contained in:
Sergei Golubchik
2016-09-29 10:16:24 +02:00
parent 0e76054b7b
commit 7497ebf8a4
2 changed files with 6 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ case "$mode" in
then
# Give extra arguments to mysqld with the my.cnf file. This script
# may be overwritten at next upgrade.
$bindir/mysqld_safe --datadir="$datadir" --pid-file="$mysqld_pid_file_path" $other_args >/dev/null &
$bindir/mysqld_safe --datadir="$datadir" --pid-file="$mysqld_pid_file_path" $other_args &
wait_for_ready; return_value=$?
# Make lock for RedHat / SuSE