mirror of https://github.com/fail2ban/fail2ban
Browse Source
Just two files to enable fail2ban within systemd: files/fail2ban-tmpfiles.conf | 1 + files/fail2ban.service | 14 ++++++++++++++ * 'systemd' of https://github.com/opoplawski/fail2ban: Add After, PIDFile, and change WantedBy to multi-user.target in fail2ban.server Add systemd unit file and tmpfiles.d configuration filespull/178/merge
Yaroslav Halchenko
12 years ago
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@
|
||||
[Unit] |
||||
Description=Fail2ban Service |
||||
After=syslog.target network.target |
||||
|
||||
[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 |
Loading…
Reference in new issue