summaryrefslogtreecommitdiff
path: root/support-files/mysql.server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support-files/mysql.server.sh')
-rw-r--r--support-files/mysql.server.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/support-files/mysql.server.sh b/support-files/mysql.server.sh
index 28bfd19be60..9162cf7d716 100644
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -47,8 +47,8 @@ basedir=
datadir=
# Default value, in seconds, afterwhich the script should timeout waiting
-# for server start.
-# Value here is overriden by value in my.cnf.
+# for server start.
+# Value here is overridden by value in my.cnf.
# 0 means don't wait at all
# Negative numbers mean to wait indefinitely
service_startup_timeout=900
@@ -373,9 +373,9 @@ case "$mode" in
;;
'status')
# First, check to see if pid file exists
- if test -s "$mysqld_pid_file_path" ; then
+ if test -s "$mysqld_pid_file_path" ; then
read mysqld_pid < "$mysqld_pid_file_path"
- if kill -0 $mysqld_pid 2>/dev/null ; then
+ if kill -0 $mysqld_pid 2>/dev/null ; then
log_success_msg "MySQL running ($mysqld_pid)"
exit 0
else
@@ -391,11 +391,11 @@ case "$mode" in
if test $pid_count -gt 1 ; then
log_failure_msg "Multiple MySQL running but PID file could not be found ($mysqld_pid)"
exit 5
- elif test -z $mysqld_pid ; then
- if test -f "$lock_file_path" ; then
+ elif test -z $mysqld_pid ; then
+ if test -f "$lock_file_path" ; then
log_failure_msg "MySQL is not running, but lock file ($lock_file_path) exists"
exit 2
- fi
+ fi
log_failure_msg "MySQL is not running"
exit 3
else