mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Move the pid file testing after arguments are parsed (previous patch was not correct)
This commit is contained in:
@@ -108,19 +108,6 @@ else
|
||||
test -z "$print_defaults" && print_defaults="my_print_defaults"
|
||||
fi
|
||||
|
||||
#
|
||||
# Set pid file if not given
|
||||
#
|
||||
if test -z "$pid_file"
|
||||
then
|
||||
pid_file=$datadir/`@HOSTNAME@`.pid
|
||||
else
|
||||
case "$pid_file" in
|
||||
/* ) ;;
|
||||
* ) pid_file="$datadir/$pid_file" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
#
|
||||
# Test if someone changed datadir; In this case we should also read the
|
||||
# default arguments from this directory
|
||||
@@ -134,6 +121,19 @@ fi
|
||||
|
||||
parse_arguments `$print_defaults $extra_args mysqld mysql_server mysql.server`
|
||||
|
||||
#
|
||||
# Set pid file if not given
|
||||
#
|
||||
if test -z "$pid_file"
|
||||
then
|
||||
pid_file=$datadir/`@HOSTNAME@`.pid
|
||||
else
|
||||
case "$pid_file" in
|
||||
/* ) ;;
|
||||
* ) pid_file="$datadir/$pid_file" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Safeguard (relative paths, core dumps..)
|
||||
cd $basedir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user