[Python-modules-team] Running fail2ban service on linux yocto

Seshu Madhavi Puppala seshumadhavi.puppala at sleepiz.com
Sat Mar 28 19:08:51 GMT 2020


Hi,
I am unable to start fail2ban service on my linux yocto device. I get the following error:
+ PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin
+ DESC='Authentication failure monitor'
+ NAME=fail2ban
+ DAEMON=/usr/bin/fail2ban-client
+ SCRIPTNAME=/etc/init.d/fail2ban
++ grep -h '^[^#]*socket *=' /etc/fail2ban/fail2ban.conf /etc/fail2ban/fail2ban.local
++ tail -n 1
++ sed -e 's/.*socket *= *//g' -e 's/ *$//g'
+ SOCKFILE=/var/run/fail2ban/fail2ban.sock
+ '[' -z /var/run/fail2ban/fail2ban.sock ']'
+ '[' -x /usr/bin/fail2ban-client ']'
+ FAIL2BAN_USER=root
+ '[' -r /etc/default/fail2ban ']'
+ DAEMON_ARGS=
+ '[' -f /etc/default/rcS ']'
+ . /etc/default/rcS
++ TMPTIME=0
++ SULOGIN=no
++ DELAYLOGIN=no
++ UTC=yes
++ VERBOSE=no
++ EDITMOTD=no
++ ENABLE_ROOTFS_FSCK=no
++ FSCKFIX=yes
++ VOLATILE_ENABLE_CACHE=yes
++ ROOTFS_READ_ONLY=no
+ test -f /lib/lsb/init-functions
+ . /etc/init.d/functions
++ NORMAL='\033[0;39m'
++ SUCCESS='\033[1;32m'
++ WARNING='\033[1;33m'
++ FAILURE='\033[1;31m'
++ INFO='\033[1;36m'
++ BRACKET='\033[1;34m'
+ command=
+ case "$command" in
+ echo 'Usage: /etc/init.d/fail2ban {start|force-start|stop|restart|force-reload|status}'
Usage: /etc/init.d/fail2ban {start|force-start|stop|restart|force-reload|status}
+ exit 3

Why could it be?

I have change the /lib/lsb/init-functions to /etc/init.d/functions.

Thanks,
Seshu Madhavi
Embedded Firmware Developer
Sleepiz AG, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200328/cbc7fbce/attachment.html>


More information about the Python-modules-team mailing list