diff options
Diffstat (limited to 'recipes-security/fail2ban/files/initd')
| -rw-r--r-- | recipes-security/fail2ban/files/initd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-security/fail2ban/files/initd b/recipes-security/fail2ban/files/initd index 4f4b394..ef58e2d 100644 --- a/recipes-security/fail2ban/files/initd +++ b/recipes-security/fail2ban/files/initd | |||
| @@ -17,6 +17,14 @@ | |||
| 17 | # Check that the config file exists | 17 | # Check that the config file exists |
| 18 | [ -f /etc/fail2ban/fail2ban.conf ] || exit 0 | 18 | [ -f /etc/fail2ban/fail2ban.conf ] || exit 0 |
| 19 | 19 | ||
| 20 | echo_success() { | ||
| 21 | echo -n "OK" | ||
| 22 | } | ||
| 23 | |||
| 24 | echo_failure() { | ||
| 25 | echo -n "FAIL" | ||
| 26 | } | ||
| 27 | |||
| 20 | check_privsep_dir() { | 28 | check_privsep_dir() { |
| 21 | # Create the PrivSep empty dir if necessary | 29 | # Create the PrivSep empty dir if necessary |
| 22 | if [ ! -d /var/run/fail2ban ]; then | 30 | if [ ! -d /var/run/fail2ban ]; then |
