[debian-mysql] Bug#1032047: mariadb-server: Preinst fails if user has mariadb running while system service stopped.

Otto Kekäläinen otto at debian.org
Sat Mar 25 23:18:42 GMT 2023


Hi!

I suggested in my mail on Feb 28th to have this in the MariaDB preinstall:

    pgrep -u root,mysql -x --nslist pid --ns $$ "mysqld|mariadbd"

It would safely shut down the Akonadi server before MariaDB goes into
update and the binary it uses vanishes for a while.

However I never got any confirmation/support for this, so I didn't
proceed with it.


If you want to contribute in the open source way to fix this or any
other issue, see
https://salsa.debian.org/mariadb-team/mariadb-server/-/wikis/Contributing-to-MariaDB-packaging-in-Debian
on how to submit a Merge Request!

The places you would want to modify are:
https://salsa.debian.org/mariadb-team/mariadb-server/-/blob/debian/latest/debian/mariadb-server.preinst#L31
https://salsa.debian.org/mariadb-team/mariadb-server/-/blob/debian/latest/debian/mariadb-server.postrm#L17



More information about the pkg-mysql-maint mailing list