• Joerg Bruehe's avatar
    Fix bug#27072: RPM autostarts the server · 766f6a76
    Joerg Bruehe authored
    This is the fix for 5.5, where the behaviour on both installation
    and upgrade is changed:
    On installation, we do not start the server, to allow automated
    installs (which happen in some indeterminate machine status).
    If the server was stopped when the upgrade begins, we assume the
    administrator is taking manual action, so we do not start the (new)
    server at the end of the upgrade.
    We still install the start/stop script, so it will be started on reboot.
    
    
    support-files/mysql.spec.sh:
      In the "pre" section of the spec file, check the server status, and write
      the result to a file.
      In the "post" section, evaluate the status file, and start the server if
      it was running during status analysis.
      In 5.5, we do *not* start the server if there is no status file (which will happen on first installation, when there is no data directory yet).
    766f6a76
mysql.spec.sh 63.8 KB