opscode-cookbooks/fail2ban — pull request #9 by meineerde (2013-04-15 12:40:46+00:00)
Title: COOK-2748: Handle /etc.init.d/fail2ban status for older versions

Fail2ban versions before 0.8.6-3 (for Debian) always return exit code 0 for the status command, even if the service is not running. This was fixed in newer versions which now return proper exit codes. It was fixed in fail2ban in https://github.com/fail2ban/fail2ban/pull/36.

It is probably a good idea to also check the other supported platform, but this pull request makes the status check work properly at least on all Ubuntu and Debian versions.

This pull request concerns [COOK-2748](http://tickets.opscode.com/browse/COOK-2748).