[SERVER-11521] Be able to prevent startup via config for rhel platform Created: 01/Nov/13 Updated: 10/Dec/14 Resolved: 01/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.4.7 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Shunwen Hsiao [X] | Assignee: | Thomas Rueckstiess |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
rhel family |
||
| Participants: |
| Description |
|
This commit https://jira.mongodb.org/browse/SERVER-709 added `ENABLE_MONGODB` option for preventing auto start after installation on Ubuntu platform. Is there a similar option for rhel platforms? |
| Comments |
| Comment by Thomas Rueckstiess [ 01/May/14 ] | |||
|
Hi Shunwen, We haven't heard back from you in some time so I'll go ahead and close this ticket now. If you'd like to follow up, please feel free to re-open the ticket and provide the results of your additional tests. Kind Regards, | |||
| Comment by Stennie Steneker (Inactive) [ 19/Mar/14 ] | |||
|
Hi Shunwen, I noticed this issue hasn't had an update in a long while. Were you able to confirm if setting `/sbin/chkconfig mongod off` prevents the auto startup? Thanks, | |||
| Comment by Norman Graham [ 05/Nov/13 ] | |||
|
OK Shunwen, I'll set this ticket to "Waiting for User Input" while you're running your experiment. Please update this ticket when you know if this procedure works for you. Best regards, | |||
| Comment by Shunwen Hsiao [X] [ 05/Nov/13 ] | |||
|
Thanks Norm. | |||
| Comment by Norman Graham [ 04/Nov/13 ] | |||
|
On RHEL systems, by default mongod is started in runlevels 2, 3, 4, and 5. You can use the chkconfig command to control the runlevels in which mongod starts. To list the current runlevels under which mongod starts, run the following command:
To prevent mongod from starting in all runlevels, run the following command:
To restore the default runlevels for mongod, run the following command:
For more information on runlevels and services under RHEL 6, see http://www.techotopia.com/index.php/Configuring_RHEL_6_Runlevels_and_Services#Identifying_Services_that_Start_at_Each_Runlevel. Does this give you enough information to proceed? Best regards, |