Please see the related MR https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/75
By dropping the hand-written maintscript code, we should mitigate this problem, as the problematic code would not be run on upgrades. In addition, the generated maintscript code used "|| true", so would ignore the systemctl/deb-systemd-invoke failure.
Unless of course restart-after-upgrade is not actually what you want for mariadb-server.
In this case though, the hand-written code should be removed nonetheless but we would need to adjust the dh_installsystemd call in debian/rules to use the old stop-before-upgrade/start-after-upgrade behaviour.
Michael
OpenPGP_signature.asc
Description: OpenPGP digital signature