summaryrefslogtreecommitdiff
path: root/support-files/magic
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2010-08-11 22:52:23 +0200
committerJoerg Bruehe <joerg@mysql.com>2010-08-11 22:52:23 +0200
commit20f9faea92630cf63180df6f19513604d0ff7d67 (patch)
tree8d5ef365073b158d37116d2fc48dea2bb3dfcc2e /support-files/magic
parent60a9dfbb3ce7f7dfde8e85b8394d32872daf92f9 (diff)
downloadmariadb-git-20f9faea92630cf63180df6f19513604d0ff7d67.tar.gz
Fix Bug#55015
"MySQL server is not restarted properly after RPM upgrade" The problem is that with the general spec file cleanup and alignment we also did a name change, dropping the "-community" part from the package file name. As a result of this, RPM (some versions of it) will report file conflicts, because it considers this name difference to imply different packages. To avoid this, the spec file explicitly "obsoletes" the old packages (with "-community" in the file name). Now, RPM will first install these packages and the remove the old ones, and part of that removal is running the "%preun" section which stops the server and uninstalls the service (removes the symlinks to "/etc/init.d/mysql" from the run level directories). This stop/uninstall will affect the new server! The fix is to define a "%triggerpostun" in this spec file which will watch for removal of the "-community" server. If this is done (as part of this install/upgrade), the trigger code will re-install the service and restart the server process. In addition, the "sleep" calls after starting the server have been cleaned up: Rather than doing 2* "sleep 2", it is now 1 "sleep 5".
Diffstat (limited to 'support-files/magic')
0 files changed, 0 insertions, 0 deletions