summaryrefslogtreecommitdiff
path: root/scripts/mysqld_safe.sh
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-10-31 11:15:44 -0800
committerjimw@mysql.com <>2005-10-31 11:15:44 -0800
commit1d9bfbf7d293d38e5137205c30e0eeff09c9d229 (patch)
treeae51fd3190b7d0719521b1fcd6c2786026c2dd12 /scripts/mysqld_safe.sh
parent829a4831b1054a769ed34e111ab88be0619aa06e (diff)
downloadmariadb-git-1d9bfbf7d293d38e5137205c30e0eeff09c9d229.tar.gz
Handle decision to use mysqld-max over mysqld within mysqld_safe
even when --ledir option is specified. (Bug #13774)
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r--scripts/mysqld_safe.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index d6585f4a552..6ce4c1e0da8 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -11,6 +11,7 @@
# executing mysqld_safe
KILL_MYSQLD=1;
+MYSQLD=
trap '' 1 2 3 15 # we shouldn't let anyone kill us
@@ -130,14 +131,6 @@ fi
user=@MYSQLD_USER@
niceness=0
-# Use the mysqld-max binary by default if the user doesn't specify a binary
-if test -x $ledir/mysqld-max
-then
- MYSQLD=mysqld-max
-else
- MYSQLD=mysqld
-fi
-
# these rely on $DATADIR by default, so we'll set them later on
pid_file=
err_log=
@@ -176,6 +169,16 @@ then
chown $user $mysql_unix_port_dir
fi
+# Use the mysqld-max binary by default if the user doesn't specify a binary
+if test -z "$MYSQLD"
+then
+ if test -x $ledir/mysqld-max
+ then
+ MYSQLD=mysqld-max
+ else
+ MYSQLD=mysqld
+ fi
+fi
if test ! -x $ledir/$MYSQLD
then