Package: mysql-server
Severity: normal

If there are multiple instances of the mysql daemon, stopping one stops
all.

Patch:


--- zopebox/etc/init.d/mysql    2005-02-16 01:15:22.000000000 +0100
+++ testzopebox/etc/init.d/mysql        2005-03-02 20:21:24.991338010 +0100
@@ -39,7 +39,7 @@
     ps_alive=`ps cax | grep -c ' mysqld$'`
     
     if [ "$1" = "check_alive"  -a  $ping_alive = 1 ] ||
-       [ "$1" = "check_dead"   -a  $ping_alive = 0  -a  $ps_alive = 0 ]; then
+       [ "$1" = "check_dead"   -a  $ping_alive = 0 ]; then
        return 0 # EXIT_SUCCESS
     else
        if [ "$2" = "warn" ]; then
@@ -94,16 +94,16 @@
          set +e
          shutdown_out=`$MYADMIN shutdown 2>&1`; r=$?
          set -e
-         if [ "$r" -ne 0 ]; then
-           /bin/echo -e -n "...failed.\n$shutdown_out\nKilling MySQL database 
server by signal: mysqld"
-           killall -15 mysqld
-            server_down=
-           for i in 1 2 3 4 5 6 7 8 9 10; do
-              sleep 1
-              if mysqld_status check_dead nowarn; then server_down=1; break; fi
-            done
-          if test -z "$server_down"; then killall -9 mysqld; fi
-         fi
+         #if [ "$r" -ne 0 ]; then
+         #  /bin/echo -e -n "...failed.\n$shutdown_out\nKilling MySQL database 
server by signal: mysqld"
+         #  killall -15 mysqld
+          #  server_down=
+         #  for i in 1 2 3 4 5 6 7 8 9 10; do
+          #    sleep 1
+          #    if mysqld_status check_dead nowarn; then server_down=1; break; 
fi
+          #  done
+          #if test -z "$server_down"; then killall -9 mysqld; fi
+         #fi
         fi
 
         if ! mysqld_status check_dead warn; then

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: sparc (sparc64)
Kernel: Linux 2.6.10
Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to