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

Fail to start with non-existing /var/run/mongodb/

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.9, 3.1.2
    • Component/s: Packaging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      rm -r /var/run/mongodb/
      systemctl start mongod
      

      or:

      rm -r /var/run/mongodb/
      /etc/init.d/mongod start
      

      Show
      rm -r /var/run/mongodb/ systemctl start mongod or: rm -r /var/run/mongodb/ /etc/init .d /mongod start

      Description

      When the init.d script is invoked without an existing /var/run/mongodb/, mongod fails to start. The variable PIDDIR is missing from the file. A fix is attached as a diff for /etc/init.d/mongod.

      This is specially problematic in distros where /var/run is mounted as a tempfs where it's empty on every boot.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: