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

condrestart uses wrong filename

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.8.0-rc0
    • Affects Version/s: 1.6.3
    • Component/s: Packaging
    • None
    • Environment:
      RHEL 5, rpm: mongo-stable-server-20100930-mongodb_1.fc13
    • Linux

      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 }

            Assignee:
            richard.kreuter Richard Kreuter (Inactive)
            Reporter:
            tekante Chris Johnson
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: