summaryrefslogtreecommitdiff
path: root/scripts/mysqld_safe.sh
diff options
context:
space:
mode:
authorunknown <jani@rhols221.adsl.netsonic.fi>2003-02-12 19:53:19 +0200
committerunknown <jani@rhols221.adsl.netsonic.fi>2003-02-12 19:53:19 +0200
commit1e1f12ef886a8f3bd52fa98093ad89eeba4ff88c (patch)
tree9db21e83cc86c702b1219e57f7f59efd2e9c8edd /scripts/mysqld_safe.sh
parent11359938a511e2424fe6df6fffe3fa5c3f5e2d7d (diff)
downloadmariadb-git-1e1f12ef886a8f3bd52fa98093ad89eeba4ff88c.tar.gz
Fixed a bug in mysqld_safe, when it earlier could have removed
a socket from another, still living MySQL server.
Diffstat (limited to 'scripts/mysqld_safe.sh')
-rw-r--r--scripts/mysqld_safe.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
index 0e9f4de09fe..49c5b0f51b7 100644
--- a/scripts/mysqld_safe.sh
+++ b/scripts/mysqld_safe.sh
@@ -272,7 +272,6 @@ echo "Starting $MYSQLD daemon with databases from $DATADIR"
echo "`date +'%y%m%d %H:%M:%S mysqld started'`" >> $err_log
while true
do
- rm -f $MYSQL_UNIX_PORT $pid_file # Some extra safety
if test -z "$args"
then
$NOHUP_NICENESS $ledir/$MYSQLD $defaults --basedir=$MY_BASEDIR_VERSION --datadir=$DATADIR $USER_OPTION --pid-file=$pid_file @MYSQLD_DEFAULT_SWITCHES@ >> $err_log 2>&1
@@ -311,7 +310,7 @@ do
I=`expr $I + 1`
done
fi
-
+ rm -f $MYSQL_UNIX_PORT $pid_file # Some extra safety
echo "`date +'%y%m%d %H:%M:%S'` mysqld restarted" | tee -a $err_log
done