Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-175

Document procrun exit codes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.4
    • Procrun
    • None

    Description

      There does not seem to be any documentation of what the different procrun exit codes mean.

      I think it would be useful to log a textual exit message as well as the numeric code, for example:

      if (someerror) {
          rv = 123;
          rm = "Someerror occurred";
      }
      ...
      if (rv)
          apxLogWrite(APXLOG_MARK_ERROR "Commons Daemon procrun failed "
                                 "with exit value: %d - %s", rv, rm);
      
      The numeric exit codes should also be documented somewhere.
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: