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

mongod.pid is not removed when calling db.shutdownServer(), preventing subsequent init.d start

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Admin, Packaging
    • Server Development Platform
    • Build 2016-11-21
    • 5

    Description

      We're running mongod as an init.d service (Amazon linux), v.3.2.10 -
      no matter how we stop mongod (shutdownServer or "service stop") - on the next start we get:

      Error starting mongod. /var/run/mongodb/mongod.pid exists.
      

      We then rm the pid file and start, but this is very annoying.
      This did not happen in 3.2.1. Please advise on init.d changes we can apply to fix this.

      Attachments

        Activity

          People

            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            yonido Yoni Douek
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: