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

condrestart uses wrong filename

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.8.0-rc0
    • Component/s: Packaging
    • Labels:
      None
    • Environment:
      RHEL 5, rpm: mongo-stable-server-20100930-mongodb_1.fc13
    • Operating System:
      Linux

      Description

      I believe the conditional restart condition of the mongod init script (/etc/init.d/mongod) has a typo for the filename being checked for the conditional restart condition. It is using /var/lock/subsys/mongodb to see if mongo is running and I think it should be using /var/lock/subsys/mongod instead

      63 condrestart)
      64 [ -f /var/lock/subsys/mongodb ] && restart || :
      65 ;;

      The start and stop conditions use mongod instead of mongodb

      27 start()
      28

      { 29 echo -n $"Starting mongod: " 30 daemon --user "$MONGO_USER" $mongod $OPTIONS 31 RETVAL=$? 32 echo 33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/mongod 34 }

      35
      36 stop()
      37

      { 38 echo -n $"Stopping mongod: " 39 killproc -p /var/lib/mongo/mongod.lock -t30 -TERM /usr/bin/mongod 40 RETVAL=$? 41 echo 42 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/mongod 43 }

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: