summaryrefslogtreecommitdiff
path: root/debian/mariadb-server-10.6.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/mariadb-server-10.6.postrm')
-rw-r--r--debian/mariadb-server-10.6.postrm3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/mariadb-server-10.6.postrm b/debian/mariadb-server-10.6.postrm
index 00ff90dbb20..97789a038df 100644
--- a/debian/mariadb-server-10.6.postrm
+++ b/debian/mariadb-server-10.6.postrm
@@ -18,9 +18,12 @@ 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 -x mariadbd > /dev/null; then return; fi
+ # Compatibility with versions that ran 'mysqld'
+ if ! pgrep -x mysqld > /dev/null; then return; fi
set +e
invoke-rc.d mariadb stop
+ invoke-rc.d mysql stop # Backwards compatibility
errno=$?
set -e