You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-3915 Remove shutdown of mysqld in post-mysql-install
This commit is contained in:
@@ -20,14 +20,6 @@ checkForError() {
|
|||||||
if [ `cat ${tmpdir}/error.check | wc -c` -ne 0 ]; then
|
if [ `cat ${tmpdir}/error.check | wc -c` -ne 0 ]; then
|
||||||
echo "MySQL Password file missing or incorrect, check .my.cnf file"
|
echo "MySQL Password file missing or incorrect, check .my.cnf file"
|
||||||
rm -f ${tmpdir}/error.check
|
rm -f ${tmpdir}/error.check
|
||||||
# Test we are using systemd
|
|
||||||
systemctl cat mariadb.service > /dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
|
||||||
systemctl stop mariadb.service > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
pkill mysqld
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -68,51 +60,13 @@ for arg in "$@"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Restart in the same way that mysqld will be started normally.
|
|
||||||
# Test we are using systemd
|
|
||||||
systemctl cat mariadb.service > /dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
|
||||||
systemctl stop mariadb.service > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
pkill mysqld
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
export MYSQL_OPTS="--skip-grant-tables"
|
|
||||||
# Test we are using systemd
|
|
||||||
systemctl cat mariadb.service > /dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
|
||||||
systemctl start mariadb.service
|
|
||||||
else
|
|
||||||
/usr/bin/mysqld_safe --skip-grant-tables &
|
|
||||||
fi
|
|
||||||
unset MYSQL_OPTS
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
|
|
||||||
# Install various Calpont stuff...
|
# Install various Calpont stuff...
|
||||||
install_mcs_mysql.sh --tmpdir=$tmpdir
|
install_mcs_mysql.sh --tmpdir=$tmpdir
|
||||||
checkForError
|
checkForError
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "ERROR: Invalid password in .my.cnf, or Columnstore plugin install missing"
|
echo "ERROR: Invalid password in .my.cnf, or Columnstore plugin install missing"
|
||||||
# Test we are using systemd
|
|
||||||
systemctl cat mariadb.service > /dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
|
||||||
systemctl stop mariadb.service > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
pkill mysqld
|
|
||||||
fi
|
|
||||||
sleep 2
|
|
||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test we are using systemd
|
|
||||||
systemctl cat mariadb.service > /dev/null 2>&1
|
|
||||||
if [ $? -eq 0 ] && [ $(running_systemd) -eq 0 ]; then
|
|
||||||
systemctl stop mariadb.service > /dev/null 2>&1
|
|
||||||
else
|
|
||||||
pkill mysqld
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user