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

Using mongod to shutdown a running server

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Test fixture implementations that start and stop a mongodb instance would be much simpler, if mongod could be used to shut down a running server, e.g. with: mongod --port 12345 --shutdown

      Code to set up and tear down a mongodb instance could then be purely static. Currently, an active connection is used to shut down the DB with the "shutdown" command. This means that this approach i.e. cannot be used in @AfterClass annotated methods in JUnit tests, because those methods must be static.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ractive Jean-Pierre Bergamin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: