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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.0.2
    • 3.0.9, 3.1.2
    • Packaging
    • None
    • Fully Compatible
    • ALL
    • 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

              ernie.hershey@mongodb.com Ernie Hershey
              cesarizu César Izurieta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: