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

'service mongod stop' does not stop mongod on amazon AMI

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.7
    • Component/s: Packaging
    • None
    • ALL
    • Hide

      Following the directions on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-amazon/ I installed mongod onto Amazon's Linux AMI (ami-e3106686). As far I know I followed the directions.

      After provisioning the Linux machine (ami-e3106686) I copied the following text into the mongodb repo file and installed mongodb:

      [mongodb-org-3.0]
      name=MongoDB Repository
      baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
      gpgcheck=0
      enabled=1

      then

      sudo yum install -y mongodb-org

      then

      sudo service mongod start

      then

      sudo service mongod stop

      Show
      Following the directions on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-amazon/ I installed mongod onto Amazon's Linux AMI (ami-e3106686). As far I know I followed the directions. After provisioning the Linux machine (ami-e3106686) I copied the following text into the mongodb repo file and installed mongodb: [mongodb-org-3.0] name=MongoDB Repository baseurl= https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/ gpgcheck=0 enabled=1 then sudo yum install -y mongodb-org then sudo service mongod start then sudo service mongod stop

      Following the directions on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-amazon/ I ended up with a mongod installation that can't be stopped using:

      sudo service mongod stop

      Even though it says it's been stopped it's still running.

      This is due to the usage of binary pidofproc which doesn't come installed with the Amazon Linux AMI ami-e3106686

      PS this is my first Jira issue I posted so please let me know if more information is needed.

      Thanks

            Assignee:
            ernie.hershey@mongodb.com Ernie Hershey (Inactive)
            Reporter:
            freefood89 Rentaro Matsukata
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: