Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
When doing a debian/ubuntu upgrade, if you have mariadb installed and stopped as a service, the process of doing an `apt-get upgrade` shouldn't start the mariadb service.
This applies both to systemd and sysv.
Additionally for systemd, systemd multiinstances e.g.`mariadb@xyz`, those that are started before the upgrade, should be stopped, and restarted after the upgrade.
Attachments
Issue Links
- relates to
-
MDEV-17739 mariadb-server-10.1: Updates not restarting mariadb@xx services
-
- Open
-
-
MDEV-23050 MariaDB Server failure on Proxmox (with Ubuntu 20.04 and Systemd)
-
- Closed
-
-
MDEV-23755 safety for upgrades (innodb) and packaging
-
- Closed
-
- links to
Based on looking so far:
preinst install - needs to note fresh install in a state
prerm upgrade - needs to account for multi-instances. Its at this stage that a recording of active services needs to occur. Q: where can this state be saved?
postinst abort-upgrade - should restart the services. Why don't we do this already? (note same isn't true for preinst abort-upgrade as server executable has been overwritten)
postinst configure - is where we should restarted only services previously stopped, or default service if fresh install