summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2020-01-04 15:22:47 -0800
committerArmin Kuster <akuster808@gmail.com>2020-01-05 16:09:44 -0800
commitb72cc7f87c0380fcc079c531683eb890a5a0305e (patch)
tree80d135295d9c2215d3db51b64427c414fb056e3f
parent5d629ccb542fe8ce523ea0a53d8a505552004302 (diff)
downloadmeta-security-b72cc7f87c0380fcc079c531683eb890a5a0305e.tar.gz
fail2ban: fix runtime error
use success/failure calls in initd/function Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-security/fail2ban/files/initd8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-security/fail2ban/files/initd b/recipes-security/fail2ban/files/initd
index 4f4b394..586b3da 100644
--- a/recipes-security/fail2ban/files/initd
+++ b/recipes-security/fail2ban/files/initd
@@ -39,9 +39,9 @@ start() {
39 RETVAL=$? 39 RETVAL=$?
40 if [ $RETVAL = 0 ]; then 40 if [ $RETVAL = 0 ]; then
41 touch ${lockfile} 41 touch ${lockfile}
42 echo_success 42 success
43 else 43 else
44 echo_failure 44 failure
45 fi 45 fi
46 echo 46 echo
47 return $RETVAL 47 return $RETVAL
@@ -53,9 +53,9 @@ stop() {
53 RETVAL=$? 53 RETVAL=$?
54 if [ $RETVAL = 0 ]; then 54 if [ $RETVAL = 0 ]; then
55 rm -f ${lockfile} ${pidfile} 55 rm -f ${lockfile} ${pidfile}
56 echo_success 56 success
57 else 57 else
58 echo_failure 58 failure
59 fi 59 fi
60 echo 60 echo
61 return $RETVAL 61 return $RETVAL