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

systemd unit mongod.service should use "After=network-online.target"

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0, 4.4.2
    • Component/s: Stability
    • Labels:
      None

      Description

      Currently the systemd unil file mongod.service waits for the network.target to be reached, via the line After=network.target. However, most Linux distributions with systemd support network-online.target, which is a better indicator that the network is up and available for MongoDB. When only waiting on network.target, it is possible that the mongod service fails to start upon system reboot.

      See this systemd documentation page for a more detailed explanation.

      We suggest changing the mongod.service file to specify:

      After=network-online.target network.target
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ryan.egesdahl Ryan Egesdahl
              Reporter:
              spencer.brown Spencer Brown
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: