summaryrefslogtreecommitdiff
path: root/support-files
diff options
context:
space:
mode:
authormtaylor@qualinost.(none) <>2007-04-12 11:16:07 -0700
committermtaylor@qualinost.(none) <>2007-04-12 11:16:07 -0700
commit99c5f418af1e2076b9f66624559f39288129c17a (patch)
treef525b53f94cfd045ef88291c11968efeadbf1cf8 /support-files
parent7caf1843eed4c9c2eb5c50e00f08e34f414b8c5b (diff)
downloadmariadb-git-99c5f418af1e2076b9f66624559f39288129c17a.tar.gz
BUG#27367 mysql.server should be LSB init script compliant
Moved cd $basedir to live in the start section, as it only applies to the start functionality and breaks the restart task
Diffstat (limited to 'support-files')
-rw-r--r--support-files/mysql.server.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index b587bfdcdd7..c68d30daafb 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -261,13 +261,13 @@ else
esac
fi
-# Safeguard (relative paths, core dumps..)
-cd $basedir
-
case "$mode" in
'start')
# Start daemon
+ # Safeguard (relative paths, core dumps..)
+ cd $basedir
+
manager=$bindir/mysqlmanager
if test -x $libexecdir/mysqlmanager
then