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

XMLWordPrintableJSON

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

      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.

        1. mongod.patch
          0.4 kB
          cesarizu

              Assignee:
              Ernie Hershey (Inactive)
              Reporter:
              Cesar Izurieta Hidalgo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: