Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20897

improved sysv init script

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      Linux
    • Backwards Compatibility:
      Fully Compatible

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ramon.fernandez Ramon Fernandez Marina
              Reporter:
              aivanise Aleksandar Ivanisevic
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: