Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-14526

CentOS 7.2/RHEL 7.2 ambari-server systemd script is broken

    XMLWordPrintableJSON

    Details

      Description

      systemd was updated in RHEL 7.2 and thus also in CentOS 7.2. This update breaks compatibility with how ambari-server starts up. There is a simple fix, just create the file /usr/lib/systemd/system/ambari-server.service with these contents:

      [Unit]
      Description=ambari-server service
      After=xe-linux-distribution.service
      
      [Service]
      Type=forking
      ExecStart=/usr/sbin/ambari-server start
      ExecStop=/usr/sbin/ambari-server stop
      
      [Install]
      WantedBy=multi-user.target
      

      There's probably a better way to work with systemd in a more systemd-ish way, but this restores compatibility for now with minimal effort. We should update the RPM to install this file if the system is managed by systemd.

        Attachments

        1. AMBARI-14526.patch
          0.9 kB
          Henning Kropp

          Activity

            People

            • Assignee:
              hkropp Henning Kropp
              Reporter:
              jimbobhickville Greg Hill
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 50m
                3h 50m