jenkinsci/jenkins — pull request #281 by rborer (2011-10-11 19:20:59+00:00)
Title: [JENKINS-11306] Debian init script: return a proper status code when Jenkins is not running.

Hi,

I enhanced the Debian init script to return a proper exit code when Jenkins is not running. According to LSB standards, the following codes should be returned:
- 0 if program is running or service is OK;
- 1 if program is dead and /var/run pid file exists;
- 3 if program is not running.

Having exit code different than 0 means the init script can be used for monitoring purpose.

Could you consider merging this pull request?

Thanks and best regards,
Reynald