You are not logged in.
Hellow fellow advanced users
My name is Martin and i'am just starting to scratch the surface of that UNIX system. I already find myself in a few rabbit holes but i managed to get out and fix it.
But now i am there that i can't do it myself. So lets describe my problem: I downloaded ( pacman -Sy fail2ban ) and then i try to see if is working ( systemctl status fail2ban ) but guess what..
[root@xdev etc]# systemctl status fail2ban
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:fail2ban(1)
Mar 14 20:37:03 xdev systemd[1]: /usr/lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
Mar 14 20:37:54 xdev systemd[1]: /usr/lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
I did a few changes in fstab but i guess that's not the problem
# /dev/sda1
UUID=b621aa45-a4c3-458c-be7e-5b3ac2336d3d / ext4 defaults,rw,noatime,commit=60,barrier=0 0 1
# /dev/sda3
UUID=75638e22-4ac5-4ed0-9db5-dda106c6b0aa /home ext4 defaults,noatime,commit=60,barrier=0 0 2
~~~
Fixed with cmd - systemctl start fail2ban
[root@xdev systemd]# systemctl status fail2ban
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-03-14 20:57:45 EET; 1min 14s ago
Docs: man:fail2ban(1)
Process: 759 ExecStartPre=/bin/mkdir -p /var/run/fail2ban (code=exited, status=0/SUCCESS)
Main PID: 760 (fail2ban-server)
Tasks: 1 (limit: 4176)
Memory: 10.0M
CGroup: /system.slice/fail2ban.service
└─760 /usr/bin/python /usr/bin/fail2ban-server -xf start
Mar 14 20:57:45 xdev systemd[1]: Starting Fail2Ban Service...
Mar 14 20:57:45 xdev systemd[1]: Started Fail2Ban Service.
Mar 14 20:57:45 xdev fail2ban-server[760]: Server ready
Last edited by xkpx (2019-03-14 19:08:31)
Offline
Why would you expect it to be working if you haven't started it yet?
Offline
I didn't know that i need to start every downloded service manually,
Also i have used Debian for some time and i get used to these services to start automatic.
~ It was my mistake really but was a good for learning.
I Got a question is every service that i install from now on i shoud start with systemctl. ( and i guess i need to systemctl enable it for autostart ? )
Last edited by xkpx (2019-03-14 19:03:34)
Offline
( pacman -Sy fail2ban )
Don't do that. https://wiki.archlinux.org/index.php/Sy … nsupported
I Got a question is every service that i install from now on i shoud start with systemctl. ( and i guess i need to systemctl enable it for autostart ? )
https://wiki.archlinux.org/index.php/Sy … sing_units
https://wiki.archlinux.org/index.php/Fail2ban#Usage
Offline
Can you please remove FIXED front the end of your title and put [SOLVED] at the front instead. Thanks.
Code of Conduct - How to Post
Offline