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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • 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
              cesar@ecuarock.net Cesar Izurieta Hidalgo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: