** Description changed:

  [ Impact ]
  
  After introducing the fix for rabbitmq-server crashing when port 5672
  was taken, a regression was caused for users due to the
  /etc/init.d/rabbitmq-server init script being removed. This is due to
  dh_installinit no longer being used in favor of the debhelper systemd
  scripts.
  
  This bug is fixed by re-introducing the dh_installinit, but making sure
  the install still does not crash when the port is taken by failing with
  "true" rather than "exit 1".
  
  [ Test Plan ]
  
  To test, install rabbitmq-server and confirm /etc/init.d/rabbitmq-server
  exists again.
+ 
+ Also test the service within a Docker container to make sure it works
+ without SystemD
  
  Likewise, follow the test plan in LP: #2130487 to make sure this change
  does not regress that bug fix.
  
  [ Where problems could occur ]
  
  Problems would most likely occur either in changes provided by the
  change to the dh_installinit call here, or the changes added in LP:
  #2130487.
  
  Regressions could also be caused in the code generated by dh_installinit
  in the postinst, which becomes the following with this change:
  
  Questing
  
  # Automatically added by dh_installinit/13.24.2ubuntu1
  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
      if [ -z "$DPKG_ROOT" ] && [ -x "/etc/init.d/rabbitmq-server" ]; then
          update-rc.d rabbitmq-server defaults >/dev/null
          if [ -n "$2" ]; then
              _dh_action=restart
          else
              _dh_action=start
          fi
          invoke-rc.d rabbitmq-server $_dh_action || true
      fi
  fi
  # End automatically added section
  
  Noble
  
  # Automatically added by dh_installinit/13.14.1ubuntu5
  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
      if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/rabbitmq-server" ]; then
          update-rc.d rabbitmq-server defaults >/dev/null
          if [ -n "$2" ]; then
              _dh_action=restart
          else
              _dh_action=start
          fi
          invoke-rc.d rabbitmq-server $_dh_action || true
      fi
  fi
  # End automatically added section
  
  Jammy
  
  # Automatically added by dh_installinit/13.6ubuntu1
  if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = 
"abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
      if [ -z "${DPKG_ROOT:-}" ] && [ -x "/etc/init.d/rabbitmq-server" ]; then
          update-rc.d rabbitmq-server defaults >/dev/null
          if [ -n "$2" ]; then
              _dh_action=restart
          else
              _dh_action=start
          fi
          invoke-rc.d rabbitmq-server $_dh_action || true
      fi
  fi
  # End automatically added section
  
  [ Other Info ]
  
  This bug is a regression due to the update made in LP: #2130487.
  
  [ Original Description ]
  
  Setting an empty `override_dh_installinit:` means that
  `/etc/init.d/rabbitmq-server` is never installed:
  
  ```
  # service rabbitmq-server start
  rabbitmq-server: unrecognized service
  ```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146490

Title:
  3.12.1-1ubuntu1.3 no longer installs /etc/init.d/rabbitmq-server

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/2146490/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to