Please help me solve strange problem...
Environment: CentOS Linux 7 (Core) x86_64, Fail2Ban v0.9.0 from repo EPEL 7, OwnCloud 7.0.3 from OwnCloud CentOS 7 repo.
I succesfull setup all environment and manually start fail2ban via command:
Code: Select all
fail2ban-client start
2014-11-26 13:14:05,884 fail2ban.server.server[26908]: INFO Starting Fail2ban v0.9.0
2014-11-26 13:14:05,885 fail2ban.server.server[26908]: INFO Starting in daemon mode
Than i suceccfully enabling fail2ban.service via:
Code: Select all
systemctl enable fail2ban.service
ln -s '/usr/lib/systemd/system/fail2ban.service' '/etc/systemd/system/multi-user.target.wants/fail2ban.service'
Code: Select all
systemctl start fail2ban.service
Job for fail2ban.service failed. See 'systemctl status fail2ban.service' and 'journalctl -xn' for details.
Code: Select all
systemctl status fail2ban.service
fail2ban.service - Fail2ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled)
Active: activating (start) since Ср 2014-11-26 13:16:25 MSK; 2s ago
Main PID: 26844 (code=exited, status=255); : 27043 (fail2ban-client)
CGroup: /system.slice/fail2ban.service
└─27043 /usr/bin/python /usr/bin/fail2ban-client -x start
Code: Select all
journalctl -xn
ноя 26 13:29:21 cloud.acconcept.ru systemd[1]: Starting Fail2ban Service...
-- Subject: Unit fail2ban.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun starting up.
ноя 26 13:29:23 cloud.acconcept.ru fail2ban-client[27566]: ERROR No file(s) foun
d for glob /var/www/html/owncloud/data/owncloud.log
ноя 26 13:29:23 cloud.acconcept.ru fail2ban-client[27566]: ERROR Failed during c
onfiguration: Have not found any log file for owncloud jail
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: fail2ban.service: control process
exited, code=exited status=255
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: Failed to start Fail2ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: Unit fail2ban.service entered fail
ed state.
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: fail2ban.service holdoff time over
, scheduling restart.
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: Stopping Fail2ban Service...
-- Subject: Unit fail2ban.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun shutting down.
ноя 26 13:29:23 cloud.acconcept.ru systemd[1]: Starting Fail2ban Service...
-- Subject: Unit fail2ban.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has begun starting up.
Code: Select all
[Unit]
Description=Fail2ban Service
After=syslog.target network.target firewalld.service
[Service]
Type=forking
ExecStart=/usr/bin/fail2ban-client -x start
ExecStop=/usr/bin/fail2ban-client stop
ExecReload=/usr/bin/fail2ban-client reload
PIDFile=/var/run/fail2ban/fail2ban.pid
Restart=always
[Install]
WantedBy=multi-user.target