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

systemd unit for mongod starts before multi.user target

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0
    • Build 2018-08-13
    • 1

    Description

      The mongod service unit is configured to be part of the multi-user.target, but the unit configuration also has the following parameter:

      After=network.target

      Basically, this makes mongod start just after the network is up and not during multi-user (one of the latest targets to trigger). This causes problems on those servers where there are network storage services or authentication services (like AD) still pending to start. mongod would not be able to start if it depends on them.

      Removing the After parameter would make systemd to start mongod as part of the correct target. If an After is needed for some reason, After=multi-user.target would avoid most of the problems with dependencies between services.

      Affects all native packages (RPM and DEB) for systemd based Linux distros.

      Attachments

        Issue Links

          Activity

            People

              mathew.robinson@mongodb.com Mathew Robinson (Inactive)
              miguel.nieto@mongodb.com Miguel Angel Nieto
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: