tags 303473 unreproducible
tags 303473 moreinfo
thanks

hi,

On Wed, Apr 06, 2005 at 11:25:33PM +0200, Bastian Blank wrote:
> The mysql initscript overwrites existing /var/run/mysqld if it is not a
> directory. This makes the ping-test in the initscript non-successfull
> and a gracefull shutdown with the initscript impossible.

really? what i believe is the relevant code snippet:

if [ ! -d $RUNDIR ]; then
  install --directory --owner=mysql --mode=755 $RUNDIR
fi

but the test -d should return true even if it's a symlink:

copelandia[~]19:17:35$ mkdir foo
copelandia[~]19:17:35$ touch foo/bar
copelandia[~]19:17:50$ ln -s foo foobar
copelandia[~]19:18:06$ if [ -d foobar ]; then echo test -d returns true; else 
echo test -d returns false; fi
test -d returns true

so i'm not sure how it overwrote your run directory.

even *trying* to reproduce it:

copelandia[/var/run]19:19:41$ sudo mv mysqld mysqld-2
copelandia[/var/run]19:19:49$ sudo ln -s mysqld-2 mysqld   
copelandia[/var/run]19:19:56$ sudo /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for crashed MySQL tables in the background.
copelandia[/var/run]19:20:05$ ls -ld /var/run/mysqld
lrwxrwxrwx  1 root root 8 2005-04-06 19:19 /var/run/mysqld -> mysqld-2
copelandia[/var/run]19:20:22$ sudo /etc/init.d/mysql stop
Stopping MySQL database server: mysqld.
copelandia[/var/run]19:20:31$ ls -ld /var/run/mysqld
lrwxrwxrwx  1 root root 8 2005-04-06 19:19 /var/run/mysqld -> mysqld-2
copelandia[/var/run]19:20:38$ ls -ld mysqld-2/
drwxr-xr-x  2 mysql root 4096 2005-04-06 19:20 mysqld-2/

still there...

On Thu, Apr 07, 2005 at 12:11:30AM +0200, Bastian Blank wrote:
> severity 303473 grave

please stop that.

> It is their. It is just no directory but a symlink.

to what?  something funny or non-existant?

On Thu, Apr 07, 2005 at 12:34:45AM +0200, Christian Hammers wrote:
> I leave this to Sean as he replied first but this reminds me to

no i didn't, but i'll take it anyway :)


        sean

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to