[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: |
|
| 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. |
| Comment by auto [ 16/Mar/10 ] |
|
Author: {'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}Message: Fix typo in rpm init script. |
| 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. |
| Comment by auto [ 16/Mar/10 ] |
|
Author: {'login': 'kreuter', 'name': 'Richard Kreuter', 'email': 'richard@10gen.com'}Message: Improve RPM packaging, init scripts. |
| 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. |