diff options
author | unknown <monty@narttu.mysql.fi> | 2003-10-24 14:22:54 +0300 |
---|---|---|
committer | unknown <monty@narttu.mysql.fi> | 2003-10-24 14:22:54 +0300 |
commit | e05ea7b8ea985dbb2daa56f7b02baa4b65dd9503 (patch) | |
tree | 4dc9cb32cbebcea2819fbf6bec1a7c2a03f86209 /support-files | |
parent | 0d97f0abe43b75a0a3965d71efa382357679d197 (diff) | |
download | mariadb-git-e05ea7b8ea985dbb2daa56f7b02baa4b65dd9503.tar.gz |
Move the pid file testing after arguments are parsed (previous patch was not correct)
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mysql.server.sh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh index 89d45e0f26d..36eb5c4dff6 100644 --- a/support-files/mysql.server.sh +++ b/support-files/mysql.server.sh @@ -109,19 +109,6 @@ else 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 |