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

Failure to use absolute path for --pidfilepath will result in no pidfile being created

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.4.5
    • Internal Code
    • None
    • Linux/Unix/OSX
    • ALL

    Description

      The --pidfilepath asks for an absolute path as an argument. This is required because the server does a chdir() to root before we write the pidfile and that write will fail if you just specify a filename (e.g. -pidfilepath proc.pid).

      This is inconsistent with --logpath which does accept a non-absolute path.

      The server should either report an error for a non-absolute path or prepend the cwd() to the pidfilepath argument for non absolute arguments.

      This happens when the --fork argument is used.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joe.drumgoole@mongodb.com Joe Drumgoole (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: