Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8850

For systemd mongd.service file need to include Type = forking

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None
    • 1

      Customer is on Ubuntu 16.04 and copied the mongod.service file from our docs but could not get the service to successfully run unless he included "Type = forking" under [Service]. Type of forking is recommended for daemon style services.

      thomas.schubert pointed out that this is actually dependent on mongod's configuration. If mongod configuration has fork = true then the mongod.system file must also contain "Type = forking".

      For more on Type see this:
      https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=

      We should modify our document to include this. We may also consider including PIDFile= as well although this should match with the mongod.conf otherwise things do not start/stop well.

            Assignee:
            Unassigned Unassigned
            Reporter:
            roy.rim@mongodb.com Roy Rim
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              1 year, 25 weeks, 4 days ago