A machine running slackware 13 crashed and required a hard reset the other day. I'm not sure why this happened, but I suspect it was KDE4.2.4 or proprietary nvidia driver or X related.
It came back up fine except that these messages kept appearing on tty1:
Code:
Number of processes running now: 0
100118 07:03:50 mysqld restarted
Number of processes running now: 0
100118 07:03:50 mysqld restarted
Number of processes running now: 0
100118 07:03:51 mysqld restarted
Number of processes running now: 0
100118 07:03:51 mysqld restarted
A ps aux | grep mysql showed that mysqld and mysqld_safe were running, the latter presumably being started in this block in rc.mysqld:
Code:
if [ -x /usr/bin/mysqld_safe ]; then
# If there is an old PID file (no mysqld running), clean it up:
if [ -r /var/run/mysql/mysql.pid ]; then
if ! ps axc | grep mysqld 1> /dev/null 2> /dev/null ; then
echo "Cleaning up old /var/run/mysql/mysql.pid."
rm -f /var/run/mysql/mysql.pid
fi
fi
/usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid $SKIP &
fi
My first guess was that a pid file had been left over after the crash, but I checked /var/run/mysql and it was empty. To stop the messages appearing I switched to another virtual terminal and did kill -9 on the /usr/bin/mysqld_safe process (normal kill didn't work). Running rc.mysqld start again produced the same messages.
I found
this thread but I think that's another problem with the same symptom.
Any ideas on how to fix this?