SHA256
1
0
forked from pool/fail2ban
fail2ban/fail2ban.service
Johannes Weberhofer afdd4dcfb1 Accepting request 199913 from home:marc_schuetz:branches:security
I've added a systemd service file for openSUSE >= 12.3.

Previous systemd based versions would require an additional variant of the service file, because SuSEfirewall2.service (which is an ordering dependency) used to be named SuSEfirewall2_setup.service in these versions. I don't think it would be worth the trouble of adding yet another switch, but I can of course do so if desired.

OBS-URL: https://build.opensuse.org/request/show/199913
OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=35
2013-09-23 09:42:53 +00:00

16 lines
392 B
Desktop File

[Unit]
Description=Bans IPs with too many authentication failures
After=network.target SuSEfirewall2.service
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/fail2ban
PIDFile=/run/fail2ban/fail2ban.pid
ExecStart=/usr/bin/fail2ban-client -x $FAIL2BAN_OPTIONS start
ExecReload=/usr/bin/fail2ban-client reload
ExecStop=/usr/bin/fail2ban-client stop
[Install]
WantedBy=multi-user.target