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

Invalid definitions in systemd configuration for debian

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.10, 3.3.15, 3.4.0-rc0
    • Fix Version/s: 3.2.11, 3.4.0-rc2
    • Component/s: Packaging
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:

      Description

      6 definitions in systemd configuration for debian have each end-of-line comment at https://github.com/mongodb/mongo/commit/906a6f057f87fb4e51c4a698d9d6fe490fb293a2
      Systemd does not support an end-of-line comment. so parsing their values failed

      I confirmed following result in Ubuntu 16.04.

      $ sudo systemctl status mongod.service
      ● mongod.service - High-performance, schema-free document-oriented database
         Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
         Active: active (running) since Sat 2016-10-15 14:02:14 JST; 5h 53min ago
           Docs: https://docs.mongodb.org/manual
       Main PID: 2985 (mongod)
         CGroup: /system.slice/mongod.service
                 └─2985 /usr/bin/mongod --quiet --config /etc/mongod.conf
       
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:10] Failed to parse resource value, ignoring: infinity # file size
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:11] Failed to parse resource value, ignoring: infinity # cpu time
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:12] Failed to parse resource value, ignoring: infinity # virtual memory size
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:13] Failed to parse resource value, ignoring: 64000 # open files
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:14] Failed to parse resource value, ignoring: 64000 # processes/threads
      Oct 15 19:55:53 tk2-218-18796 systemd[1]: [/lib/systemd/system/mongod.service:15] Maximum tasks value 'infinity # total threads (user+kernel)' invalid. Ignoring.
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: