[SERVER-20930] RPM package overwrites /etc/sysconfig/mongod Created: 15/Oct/15  Updated: 16/Nov/21  Resolved: 09/Feb/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.2.4, 3.3.2

Type: Bug Priority: Major - P3
Reporter: Tim Hawkins Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: code-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-5008 Prevent RPM from overwriting a locall... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Build 10 (02/19/16)
Participants:

 Description   

This bug has been reported 4 times on different versions and has been closed as fixed in every case, and yet the rpm package STILL overwrites the /etc/sysconfig/mongod file, replacing it with an empty file.

The problem is present in all versions of the mongodb rpms that i have installed from tne 10gen repos. Versiins 2.4, 2.6 and 3.0. It is a major hazzard to production systems that may rely on tbe ability to override configuratiin in the sysconfig file.

To be clear, if an existing /etc/sysconfig/mongod file exists it should never be over written by the rpm installer, if there are important new options in tne file then it should be created with a .rpmnew extension.

This defect is a major pain in the ass when upgrading servers.



 Comments   
Comment by Githook User [ 24/Feb/16 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: SERVER-20930 SERVER-20404: clarify sysconfig and default config override

(cherry picked from commit 985e2a0be95709ac064c57f0a9bb385a55937285)
Branch: v3.2
https://github.com/mongodb/mongo/commit/5d2de9f9525f8567ee9fad8f0a3fc67995db0f25

Comment by Githook User [ 09/Feb/16 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: SERVER-20930 SERVER-20404: clarify sysconfig and default config override
Branch: master
https://github.com/mongodb/mongo/commit/985e2a0be95709ac064c57f0a9bb385a55937285

Generated at Thu Feb 08 03:55:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.