aboutsummaryrefslogtreecommitdiffstats
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
meta-security-b72cc7f87c0380fcc079c531683eb890a5a0305e.tar.bz2
meta-security-b72cc7f87c0380fcc079c531683eb890a5a0305e.zip
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() {
RETVAL=$?
if [ $RETVAL = 0 ]; then
touch ${lockfile}
- echo_success
+ success
else
- echo_failure
+ failure
fi
echo
return $RETVAL
@@ -53,9 +53,9 @@ stop() {
RETVAL=$?
if [ $RETVAL = 0 ]; then
rm -f ${lockfile} ${pidfile}
- echo_success
+ success
else
- echo_failure
+ failure
fi
echo
return $RETVAL