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

rhel7 rpm packages don't stop the service while uninstalling packages

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 4.1 Desired
    • Affects Version/s: 2.6.5, 2.7.8
    • Component/s: Packaging
    • Linux
    • Hide
      - on a clean rhel7 system install 2.6.5 enterprise packages
      - sudo service mongod start
      - sudo sh -c "echo \"port=57017\" >> /etc/mongod.conf"
      - sudo service mongod restart
      - mongo --port 57017 // verify that mongod is now running on 57017
      - sudo yum remove mongodb-enterprise-*
      - ps aux | grep mongod | grep -v grep
          mongod    1094  0.2  3.0 552664 31100 ? Rl   13:21   0:00 /usr/bin/mongod -f /etc/mongod.conf
      - ls -ld /etc/mongo*
          -rw-r--r--. 1 root root 1544 Oct 31 13:51 /etc/mongod.conf
          -rw-r--r--. 1 root root 1532 Oct 31 13:19 /etc/mongod.conf.rpmsave
      - ls -ld /var/log/mongodb/*.*
          -rw-r-----. 1 mongod mongod    0 Oct  8 18:06 mongod.log
          -rw-r-----. 1 mongod mongod 5458 Oct 31 13:22 mongod.log.rpmsave
      - sudo service mongod restart
      - ls -ld /var/log/mongodb/*.*
          -rw-r-----. 1 mongod mongod 3444 Oct 31 14:10 /var/log/mongodb/mongod.log
          -rw-r-----. 1 mongod mongod 6989 Oct 31 13:24 /var/log/mongodb/mongod.log.rpmsave
      
      Show
      - on a clean rhel7 system install 2.6.5 enterprise packages - sudo service mongod start - sudo sh -c "echo \"port=57017\" >> /etc/mongod.conf" - sudo service mongod restart - mongo --port 57017 // verify that mongod is now running on 57017 - sudo yum remove mongodb-enterprise-* - ps aux | grep mongod | grep -v grep mongod 1094 0.2 3.0 552664 31100 ? Rl 13:21 0:00 /usr/bin/mongod -f /etc/mongod.conf - ls -ld /etc/mongo* -rw-r--r--. 1 root root 1544 Oct 31 13:51 /etc/mongod.conf -rw-r--r--. 1 root root 1532 Oct 31 13:19 /etc/mongod.conf.rpmsave - ls -ld /var/log/mongodb/*.* -rw-r-----. 1 mongod mongod 0 Oct 8 18:06 mongod.log -rw-r-----. 1 mongod mongod 5458 Oct 31 13:22 mongod.log.rpmsave - sudo service mongod restart - ls -ld /var/log/mongodb/*.* -rw-r-----. 1 mongod mongod 3444 Oct 31 14:10 /var/log/mongodb/mongod.log -rw-r-----. 1 mongod mongod 6989 Oct 31 13:24 /var/log/mongodb/mongod.log.rpmsave
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      While removing the enterprise packages for rhel7, if a mongod is running, it's not stopped. If a custom config file was in place, it creates separate log file but does not write to that. Removal of package should stop the mongod if it's running.

            Assignee:
            alex.neben@mongodb.com Alex Neben
            Reporter:
            jalpa.trivedi@mongodb.com Jalpa Trivedi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: