[SERVER-14054] Mongod service does not respect chkconfig configuration Created: 27/May/14 Updated: 10/Dec/14 Resolved: 09/Jul/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.6.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dharshan Rangegowda | Assignee: | Ernie Hershey |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Version: 2.6.1 I am trying to turn off the mongod service on one of my servers. However on reboot i notice that the mongod service is running. Doesn't look like the chkconfig config is respected by the mongod server. |
| Comments |
| Comment by Ernie Hershey [ 03/Jul/14 ] | |
|
Hi dharshanr@scalegrid.net - when you run "ps auwx | grep mongod" it's listing mongos because it's running as the "mongod" user. As you can see, there's no mongod process so chkconfig did indeed disable starting mongod. Do you have any other questions or problems that should be addressed in this ticket? You can generally get more help if you email the user group which has a wider audience of people who can help with issues like this. | |
| Comment by Dharshan Rangegowda [ 13/Jun/14 ] | |
|
Here you go [root@ip-172-31-36-150 ec2-user]# ps auwx | grep mongod It's fairly confusing - why is mongos appearing as mongod? I hacked together the /etc/init.d script based on the mongod script. Killing this process and then running "service mongos start" appears to do the trick Here it my mongos start script
. /etc/rc.d/init.d/functions
MONGO_USER=mongod if [ -f "$SYSCONFIG" ]; then
start() stop() " exit $RETVAL | |
| Comment by Ramon Fernandez Marina [ 10/Jun/14 ] | |
|
we still need more information to diagnose this ticket. If this is still an issue for you, can you please provide the information Ernie requested above? Thanks, | |
| Comment by Ernie Hershey [ 28/May/14 ] | |
|
The symlinks under /etc/rc.d look like the chkconfig command did what it was supposed to. Can you run "ps auwx | grep mongod" and show the output? You can also run this to see if another script under /etc/init.d is starting it:
Can you provide more detail on the MMS agent you have installed? How did you install it? What's the version? | |
| Comment by Dharshan Rangegowda [ 28/May/14 ] | |
|
Here are the results after I disable the service and reboot. "service status mongod" says the service is stopped but the mongod process is running. [root@ip-10-251-86-194 ec2-user]# find /etc/ -name *mongod -ls [root@ip-10-251-86-194 ec2-user]# pgrep mongod | |
| Comment by Ernie Hershey [ 27/May/14 ] | |
|
Hm, we've basically done that and can't reproduce the problem yet. We'll keep trying but can you post the output of the command I mentioned? Can you also show the output of "ps" or the command you're using to tell that the process is running? | |
| Comment by Dharshan Rangegowda [ 27/May/14 ] | |
|
That would be my guess as well. I have the mongodb monitoring agent installed on the box. If I do "service mongod status" it shows up as "stopped" but the mongod process is running. Is it possible that somehow the MMS agent is trigger the process manually. It is very simple to repro | |
| Comment by Ernie Hershey [ 27/May/14 ] | |
|
dharshanr@scalegrid.net - is it possible something other than the normal mongod init script is starting up mongod? To help troubleshoot, can you post the output of this command?
|