Commit 2ded1b43 authored by Leigh B Stoller's avatar Leigh B Stoller

Add small delay if mysqld socket does not exist; this script runs to soon

after mysqld starts, and the socket is not there for a few seconds.
parent f94f924c
......@@ -14,9 +14,13 @@ DBNAME="@TBDBNAME@"
LOGFILE="/var/log/mysqlcheck.log"
command=/usr/local/bin/mysqlcheck
socket=/tmp/mysql.sock
case "$1" in
start|faststart|quietstart|onestart|forcestart)
if [ ! -e "$socket" ]; then
sleep 10
fi
rm -f $LOGFILE
if [ $MAINSITE == "0" ]; then
echo "*** Checking $DBNAME ..." >> $LOGFILE
......@@ -30,6 +34,7 @@ case "$1" in
echo "*** Checking geni-cm ..." >> $LOGFILE
$command --auto-repair geni-cm >> $LOGFILE
fi
echo -n ' tbdbcheck'
;;
stop|faststop|quietstop|onestop|forcestop)
;;
......
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