[SERVER-20897] improved sysv init script Created: 13/Oct/15  Updated: 09/Jul/16  Resolved: 09/Jan/16

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

Type: Improvement Priority: Minor - P4
Reporter: Aleksandar Ivanisevic Assignee: Ramon Fernandez Marina
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Attachments: HTML File mongod    
Issue Links:
Related
related to SERVER-3748 Add init scripts for mongos and confi... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Hi,

as advised on the mailing list attached is the improved sysv init script to more easily run multiple instances of mongod/s/c

I have improved the sysv init script shipped with mongod to allow for
multiple instances of mongod/s on the same server. Basically you can
rename the script whatever you like and it will use the appropriate
config files, i.e. if you rename or copy /etc/init.d/mongod to
e.g. /etc/init.d/mongod2 it will use /etc/mongod2.conf and
/etc/sysconfig/mongod2 and start/stop whatever it is in there. It will
also detect if it is a mongos or mongod you want to run and run the
appropriate daemon. You have to cater for separate pidfiles, ports
and logs in the config files though.

The script is fully compatible with the version currently shipped. It is only tested on RHEL, although the same diff can be probably applied to the SuSe version, but someone will need to retest that.



 Comments   
Comment by Ramon Fernandez Marina [ 23/Nov/15 ]

Thanks for the modified script aivanise. Please take a look at the Getting Started section of the MongoDB Contributo's guide for how to send in a pull request via github.

Note that you'll need to sign the contributor's agreement before we can consider your contributions.

Regards,
Ramón.

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