Commit fb7c1b94 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-21331 installation fails on a server with containers

when detecting running mysqld processes to stop,
ignore processes in different namespaces.
parent 01f8f33b
...@@ -25,7 +25,7 @@ stop_server() { ...@@ -25,7 +25,7 @@ stop_server() {
# Return immediately if there are no mysql processes running # Return immediately if there are no mysql processes running
# as there is no point in trying to shutdown in that case. # as there is no point in trying to shutdown in that case.
if ! pgrep mysqld > /dev/null; then return; fi if ! pgrep --ns $$ mysqld > /dev/null; then return; fi
set +e set +e
if [ -x /usr/sbin/invoke-rc.d ]; then if [ -x /usr/sbin/invoke-rc.d ]; then
......
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