Commit 49e9743d authored by unknown's avatar unknown

Merge qualinost.(none):/home/mtaylor/src/mysql/mysql-5.0-initstatus

into  qualinost.(none):/home/mtaylor/src/mysql/mysql-firsttwo

parents 1aee9665 428e4b07
...@@ -371,7 +371,7 @@ case "$mode" in ...@@ -371,7 +371,7 @@ case "$mode" in
;; ;;
'status') 'status')
# First, check to see if pid file exists # First, check to see if pid file exists
if [ -s "$server_pid_file" ] ; then if test -s "$server_pid_file" ; then
read mysqld_pid < $server_pid_file read mysqld_pid < $server_pid_file
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)" log_success_msg "MySQL running ($mysqld_pid)"
...@@ -383,7 +383,16 @@ case "$mode" in ...@@ -383,7 +383,16 @@ case "$mode" in
else else
# Try to find appropriate mysqld process # Try to find appropriate mysqld process
mysqld_pid=`pidof $sbindir/mysqld` mysqld_pid=`pidof $sbindir/mysqld`
if [ -z $mysqld_pid ] ; then if test -z $mysqld_pid ; then
if test "$use_mysqld_safe" = "0" ; then
lockfile=/var/lock/subsys/mysqlmanager
else
lockfile=/var/lock/subsys/mysql
fi
if test -f $lockfile ; then
log_failure_msg "MySQL is not running, but lock exists"
exit 2
fi
log_failure_msg "MySQL is not running" log_failure_msg "MySQL is not running"
exit 3 exit 3
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment