intelegent fix for aio on openvz

This commit is contained in:
Serghey Rodin 2013-08-03 10:42:44 +03:00
commit 1fff552598

View file

@ -522,15 +522,20 @@ else
wget $CHOST/$VERSION/mysql.cnf -O /etc/my.cnf
fi
# Disable aio on OpenVZ
if [ -e "/proc/user_beancounters" ]; then
sed -i "s/#innodb_use_native_aio/innodb_use_native_aio/g" /etc/my.cnf
fi
chkconfig mysqld on
service mysqld start
if [ "$?" -ne 0 ]; then
echo "Error: mysqld start failed"
exit
# Fix for aio on OpenVZ
if [ -e "/proc/user_beancounters" ]; then
sed -i "s/#innodb_use_native_aio/innodb_use_native_aio/g" /etc/my.cnf
fi
service mysqld start
if [ "$?" -ne 0 ]; then
echo "Error: mysqld start failed"
exit 1
fi
fi
mysqladmin -u root password $mpass