mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-21 05:27:04 +00:00
fail2ban: fix runtime error
use success/failure calls in initd/function Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -39,9 +39,9 @@ start() {
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL = 0 ]; then
|
if [ $RETVAL = 0 ]; then
|
||||||
touch ${lockfile}
|
touch ${lockfile}
|
||||||
echo_success
|
success
|
||||||
else
|
else
|
||||||
echo_failure
|
failure
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
@@ -53,9 +53,9 @@ stop() {
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL = 0 ]; then
|
if [ $RETVAL = 0 ]; then
|
||||||
rm -f ${lockfile} ${pidfile}
|
rm -f ${lockfile} ${pidfile}
|
||||||
echo_success
|
success
|
||||||
else
|
else
|
||||||
echo_failure
|
failure
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
|
|||||||
Reference in New Issue
Block a user