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-22 17:31:38 -0800
commit7da6e2d804e254fa9d07c33f70abe45326d49be1 (patch)
tree50cfbc3725dd50915fa2ad8752602266096b25b5
parent42a1ac56be79ba8e09b4942ef203ca33008591cf (diff)
downloadmeta-security-7da6e2d804e254fa9d07c33f70abe45326d49be1.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