mirror of
https://git.yoctoproject.org/meta-security
synced 2026-10-15 17:27:01 +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:
1 parent
42a1ac56be
commit
7da6e2d804
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user