Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37368

systemctl start mongod fails when the RPM is installed with --prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Packaging
    • Labels:
    • Operating System:
      ALL
    • Steps To Reproduce:
      1. Fresh Centos75 bento box (bento/centos-7.5)
      2. Download the rpm from our downloads center
      3. sudo rpm --prefix /opt/mdb package.rpm
      4. sudo systemctl start mongod
    • Sprint:
      Build 2018-10-22, Build 2018-11-05
    • Case:
    • Story Points:
      5

      Description

      The MongoDB RPM is relocatable according

      rpm -qvip
      

      However it appears the included mongod.service does not reflect a relocation and still expects the executable at /usr/bin/mongod. The service then fails to start.

      Editing mongod.service and updating ExecStart fixes the issue

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: