summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-04-22 15:39:40 +0200
committerSergei Golubchik <serg@mariadb.org>2020-04-28 17:51:38 +0200
commitfb7c1b9415c9a8b0dc2e86ae44f0e7a2634e5d7e (patch)
treead2195742fea7fdd010893f2eb2e73a5092d5f7b /debian
parent01f8f33b43e5aa63752ccd71a6a63c5840207d3c (diff)
downloadmariadb-git-fb7c1b9415c9a8b0dc2e86ae44f0e7a2634e5d7e.tar.gz
MDEV-21331 installation fails on a server with containers
when detecting running mysqld processes to stop, ignore processes in different namespaces.
Diffstat (limited to 'debian')
-rw-r--r--debian/mariadb-server-10.2.preinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mariadb-server-10.2.preinst b/debian/mariadb-server-10.2.preinst
index ed987507d18..161d9caee6e 100644
--- a/debian/mariadb-server-10.2.preinst
+++ b/debian/mariadb-server-10.2.preinst
@@ -25,7 +25,7 @@ stop_server() {
# Return immediately if there are no mysql processes running
# 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
if [ -x /usr/sbin/invoke-rc.d ]; then