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

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

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Packaging
    • Labels:
    • ALL
      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
    • Build 2018-10-22, Build 2018-11-05
    • 5

      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

            Assignee:
            alex.neben@mongodb.com Alex Neben
            Reporter:
            vick.mena Vick Mena (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: