[SERVER-575] red hat init scripts - allow to run as non-root Created: 27/Jan/10  Updated: 12/Jul/16  Resolved: 16/Mar/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.4

Type: New Feature Priority: Major - P3
Reporter: josh rabinowitz Assignee: Richard Kreuter (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

centos5


Attachments: File mongod     File mongodb.conf    
Participants:

 Description   

Allow mongod, when started from the init script, to run as non-root user



 Comments   
Comment by Richard Kreuter (Inactive) [ 16/Mar/10 ]

Whoops! Thanks for the report. Fixed in 5476c8a.

Comment by auto [ 16/Mar/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Backport of typo fix 5476c8a. SERVER-575
http://github.com/mongodb/mongo/commit/84eab5e950fc267f82fb68bd0b34647876994ac3

Comment by auto [ 16/Mar/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Fix typo in rpm init script. SERVER-575
http://github.com/mongodb/mongo/commit/5476c8a13e421fd7432fe6b1076d5328c93842ea

Comment by Frank Febbraro [ 16/Mar/10 ]

Looks like a typo/bug here:

http://github.com/mongodb/mongo/commit/2b7eb102159a36129222afa1883ea3b15145e08b#L0R40

See '&7' instead of '&&'

Comment by Richard Kreuter (Inactive) [ 16/Mar/10 ]

Fixed in 1.3.4-, backported to v1.2 branch.

Comment by auto [ 16/Mar/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Backport 2b7eb1021 (RPM improvements) to 1.2. SERVER-575, SERVER-576
http://github.com/mongodb/mongo/commit/6e44c363413a553a3380fdbf50548fb97c5be645

Comment by auto [ 16/Mar/10 ]

Author:

{'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}

Message: Improve RPM packaging, init scripts. SERVER-575, SERVER-576.
http://github.com/mongodb/mongo/commit/2b7eb102159a36129222afa1883ea3b15145e08b

Comment by Frank Febbraro [ 15/Mar/10 ]

My pleasure, glad it provided something useful.

Comment by Richard Kreuter (Inactive) [ 15/Mar/10 ]

The init script in our server repository already uses mongodb.conf. I'm incorporating a couple of your features, however; so thank you for the contribution!

Comment by Frank Febbraro [ 13/Mar/10 ]

Config file and init.d script. You will definitely want to change the location of MONGO_HOME, etc. but it's a decent start and most importantly it works on RHEL5

Comment by Eliot Horowitz (Inactive) [ 13/Mar/10 ]

frank: that would be great.

Comment by Frank Febbraro [ 13/Mar/10 ]

I have written an init.d script that starts/stops mongod. It uses a /etc/mongodb.conf as a config file, I'm sure someone will want to expand on it a bit, but to get you going I have one. I can attach if you are interested.

Generated at Thu Feb 08 02:54:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.