Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-38048

Add "status" command to couchbase-server (or equivalent)

    XMLWordPrintable

Details

    Description

      In non-root install cases, the normal mechanism for checking status of Couchbase Server (systemctl status couchbase-server.service) isn't available. It would be good to add some kind of status command to the couchbase-server.sh script.

      Checking status is not completely trivial. I suggest we do something like we used to do when we integrated with init.d - i.e.

      running() {
          pidofproc -p $PIDFILE $DAEMON >/dev/null
          errcode=$?
          return $errcode
      }
      

      pidofproc isn't available in general so if we go this way, we'll need to emulate it. I.e. us /proc or ps to check that a process with the expected PID is running and is associated with the expected executable.

      There are different approaches to this and we can debate as to which way we want to go.

      Details on pidofproc (and other init functions): http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-38048
          # Subject Branch Project Status CR V

          Activity

            People

              arunkumar Arunkumar Senthilnathan (Inactive)
              dfinlay Dave Finlay
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty