Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11306

Debian init script: status command exit code is always 0

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Debian Lenny (5.0.9), Jenkins 1.434
    • Similar Issues:

      Description

      Under debian Lenny, the /etc/init.d/jenkins status script always exit with return code 0, even it the service is not running. According to LSB standard, the return code should be the following:

      • 0 program is running or service is OK;
      • 1 program is dead and /var/run pid file exists;
      • 3 program is not running.

      Found on https://fedoraproject.org/wiki/FCNewInit/Initscripts#Init_Script_Actions as official LSB website is currently down.

      This fixed status code is quite annoying if we rely on the init script for monitoring purpose.

        Attachments

          Activity

          rborer Reynald Borer created issue -
          abayer Andrew Bayer made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 141525 ] JNJira + In-Review [ 189668 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              rborer Reynald Borer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: