Author: glen                         Date: Thu Aug 14 09:57:50 2008 GMT
Module: SOURCES                       Tag: MYSQL_5_0
---- Log message:
- bugfix: no hardcode, show orphaned mysqld only if full status asked

---- Files affected:
SOURCES:
   mysql.init (1.118.2.2 -> 1.118.2.3) 

---- Diffs:

================================================================
Index: SOURCES/mysql.init
diff -u SOURCES/mysql.init:1.118.2.2 SOURCES/mysql.init:1.118.2.3
--- SOURCES/mysql.init:1.118.2.2        Thu Aug 14 11:00:35 2008
+++ SOURCES/mysql.init  Thu Aug 14 11:57:44 2008
@@ -538,11 +538,12 @@
                        running="$running $pid"
                fi
        done
-       if [ "$running" ]; then
+
+       if [ $# -gt 1 -a "$running" ]; then
                nls "Warning: MySQL Daemon processes not under clusters.conf 
control:"
                # see if we can display their status
                for pid in $running; do
-                       datadir=$(cat /proc/14165/cmdline | tr '\0' '\n' | 
fgrep -- --datadir=)
+                       datadir=$(cat /proc/$pid/cmdline | tr '\0' '\n' | fgrep 
-- --datadir=)
                        datadir=${datadir#--datadir=} # strip --datadir
                        mysqldir=${datadir%/mysqldb/db} # strip /mysqldb/db
                        mysqlstatus "$mysqldir"
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mysql.init?r1=1.118.2.2&r2=1.118.2.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to