[SERVER-26652] Invalid definitions in systemd configuration for debian Created: 15/Oct/16  Updated: 22/Nov/16  Resolved: 18/Oct/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 3.2.10, 3.3.15, 3.4.0-rc0
Fix Version/s: 3.2.11, 3.4.0-rc2

Type: Bug Priority: Major - P3
Reporter: Toshimitsu Takahashi Assignee: Ernie Hershey
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-26438 systemd rejects service file in debia... Closed
is related to SERVER-27061 Fix RPM systemd comment syntax Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Participants:

 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.



 Comments   
Comment by Githook User [ 18/Oct/16 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-26652 - reformat systemd service comments

(cherry picked from commit 806c7d65cc2c5f676ac3fa94a6c9f01689197fc4)
Branch: v3.2
https://github.com/mongodb/mongo/commit/fd0914563e3d543ad1cbf4396cdd76e50fd257f4

Comment by Githook User [ 18/Oct/16 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-26652 - reformat systemd service comments
Branch: master
https://github.com/mongodb/mongo/commit/806c7d65cc2c5f676ac3fa94a6c9f01689197fc4

Comment by Ramon Fernandez Marina [ 15/Oct/16 ]

Thanks for the report tilfin, we're investigating.

Generated at Thu Feb 08 04:12:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.