# Check if server is running with jemalloc - if not warn that restart is needed
if [ $ENABLE = 1 ]; then
printf "Checking if Percona Server is running with jemalloc enabled...\n"
JEMALLOC_STATUS=$(grep -c jemalloc /proc/${PID_NUM}/environ)
if [ $JEMALLOC_STATUS = 0 ]; then
printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
exit 1
else
printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
fi
fi
I think all the changes need to be tested in docker before publishing.
Thanks
Please return this version:
# Check if server is running with jemalloc - if not warn that restart is needed STATUS= $(grep -c jemalloc /proc/$ {PID_NUM} /environ)
if [ $ENABLE = 1 ]; then
printf "Checking if Percona Server is running with jemalloc enabled...\n"
JEMALLOC_
if [ $JEMALLOC_STATUS = 0 ]; then
printf "ERROR: Percona Server is not running with jemalloc, please restart mysql service to enable it and then run this script...\n\n";
exit 1
else
printf "INFO: Percona Server is running with jemalloc enabled.\n\n";
fi
fi
I think all the changes need to be tested in docker before publishing.
Thanks