[SERVER-12757] /etc/default/mongodb not used; no DAEMON_OPTS or similar available Created: 18/Feb/14 Updated: 10/Dec/14 Resolved: 20/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 2.4.9 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Michael | Assignee: | Ramon Fernandez Marina |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
I used to set a couple of options (e.g. --replSet) in /etc/default/mongodb to configure the daemon started through my custom sysvinit script (start-stop-daemon ... – $DAEMON_OPTS). The upstart script sources /etc/default/mongodb, but doesn't actually use any variables. Should I use /etc/mongodb.conf instead? Ubuntu, Version 2.4.9 (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu) Thanks. |
| Comments |
| Comment by Ramon Fernandez Marina [ 20/Jun/14 ] |
|
You're right in your observation that /etc/default/mongodb is sourced but not used. You have two options to customize your installation:
I'd say both alternatives are pretty much equivalent, so which one you choose is up to you. If you're planning to upgrade to 2.6 in the near future, you may want to look at the upstart file for mongod in 2.6 and choose the option above that will make the upgrade easier for you. |