[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,
Thomas

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,
Stephen

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,
--Norm

Comment by Shunwen Hsiao [X] [ 05/Nov/13 ]

Thanks Norm.
The reason I am asking for this feature is that, when installing mongodb on small storage VPS by chef, the auto startup after installation fails the provision because it uses the default config comes with the package. I will try if setting `/sbin/chkconfig mongod off` could prevent the auto startup.

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:

/sbin/chkconfig --list mongod

To prevent mongod from starting in all runlevels, run the following command:

/sbin/chkconfig mongod off

To restore the default runlevels for mongod, run the following command:

/sbin/chkconfig --level 2345 mongod on

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,
--Norm

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