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

mongod 2.4.10 does not delete PID file on exit

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.10, 2.6.3, 2.7.3
    • Component/s: Internal Code
    • Labels:
      None
    • Environment:
      x86_64
    • Linux
    • Hide

      add pidfilepath=/data/db/mongod.pid to config file
      start mongod
      stop mongod - the old pidfile is not deleted

      Show
      add pidfilepath=/data/db/mongod.pid to config file start mongod stop mongod - the old pidfile is not deleted

      my /etc/mongod.conf defines an pidfile. On server startup the pid file gets created with the correct process id in it.
      Terminating mongod with the provided init-script (upstart) does not delete the pid file and the file contains the old process id (it does not get cleared out as the lock file)

      System ubuntu 12.04 / 64bit
      MongoDB 2.4.10
      deb archve from http://downloads-distro.mongodb.org/repo/ubuntu-upstart

      Best regards

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            stefan@seide.st Stefan Seide
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: