[SERVER-17952] init script for redhat can't stop the server MongoDB Created: 09/Apr/15  Updated: 10/Apr/15  Resolved: 10/Apr/15

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: matthieu jacquinot Assignee: Ramon Fernandez Marina
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-17337 RPM Init script breaks with quotes in... Closed
Operating System: ALL
Participants:

 Description   

The init script (/etc/init.d/mongod) provided for redhat (rpm 3.0.1-1.el6) is not functional for stopping the mongoDB process.
It uses the command "pidofproc" which isnot avaiable on redhat system.



 Comments   
Comment by Ramon Fernandez Marina [ 10/Apr/15 ]

Thanks for confirming that 3.0.2 solves this issue matthieu.jacquinot@gefco.fr. We're thus closing this ticket as a duplicate of SERVER-17337.

Regards,
Ramón.

Comment by matthieu jacquinot [ 10/Apr/15 ]

Hi,

I upgrade mongoDB to the version 3.0.2 and it's OK.

Thank you

Comment by Ramon Fernandez Marina [ 09/Apr/15 ]

matthieu.jacquinot@gefco.fr, please note that SERVER-17337 was fixed for 3.0.2, which is now available for download. Because of this and other fixes I'd strongly encourage you to upgrade. Please let us know if the problem persists after upgrading to 3.0.2.

Regards,
Ramón.

Comment by James Wahlin [ 09/Apr/15 ]

Hi Matthieu,

Can you check whether the "pidFilePath" config parameter has a quoted value? If the path has quotes surrounding it can you remove the quotes and try this again? There is a known issue with our RHEL init.d scripts where quotes around the pidFilePath value are not handled correctly, as reported by SERVER-17337.

Thanks,
James

Comment by matthieu jacquinot [ 09/Apr/15 ]

I'm working on Red Hat Enterprise Linux Server release 6.4 (Santiago)
/etc/redhat-release (END)

Yes you right, pidofproc is defined in /etc/rc.d/init.d/functions but mongoDB don't stop when I run /etc/init.d/mongod stop

  1. /etc/init.d/mongod stop
    Stopping mongod: [ OK ]
  1. /etc/init.d/mongod status
    mongod (pid 2385) is running...
  1. ps -ef |grep mongod
    mongod 2385 1 0 Apr07 ? 00:24:39 /usr/bin/mongod -f /etc/mongod.conf
Comment by Ramon Fernandez Marina [ 09/Apr/15 ]

matthieu.jacquinot@gefco.fr, what RedHat version you're using? pidofproc is a shell function provided by /etc/rc.d/init.d/functions, part of the initscripts package. Can you please make sure this package is properly installed and try again?

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