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

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.9, 3.1.2
    • Affects Version/s: 3.0.2
    • Component/s: Packaging
    • Labels:
      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

      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.

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            cesar@ecuarock.net Cesar Izurieta Hidalgo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: