sebres
7e3061e7ac
fail2ban.service systemd unit template: don't add user site directory to python system path (avoids accessing of `/root/.local` directory, prevents SE linux audit warning at daemon startup, gh-2688)
5 years ago
Sergey G. Brester
d5a5efcd5a
amend to #2174 for fail2ban.service, fix legacy path, closes gh-2474
5 years ago
Sergey G. Brester
67247999ff
closes #2313 : missing dependency to nftables.service
6 years ago
sebres
f31195a4fc
added new logtarget "SYSOUT" to log from fail2ban working in foreground as systemd-service (in opposite to "STDOUT" don't log time-stamps).
7 years ago
martin61
5db497017a
add ip6tables.service ipset.service in systemd unit
7 years ago
sebres
e3b061e94b
- `files/fail2ban.service` renamed as template to `files/fail2ban.service.in`;
...
- setup process generates `build/fail2ban.service` from `files/fail2ban.service.in` using distribution related bin-path;
- bug-fixing by running setup with option `--dry-run` (note: specify option `--dry-run` before `install`, like `python setup.py --dry-run install`);
- test cases extended to cover dry-run.
7 years ago
sebres
45174c5eaf
if fail2ban running as systemd-service, for logging to the systemd-journal, the `logtarget` could be set to STDOUT
...
small fixes by logging in stdout (+ system targets also allowed in lowercase now)
8 years ago
sebres
1cd67ecaa2
automatically creates /var/run/fail2ban before start fail2ban (systems which /var/run/ is virtual resp. memory mount device)
8 years ago
sebres
528a7a5abb
systemd service update:
...
- starting service in normal mode (without forking)
- does not restart if service exited normally (exit-code 0, e.g. stopped via fail2ban-client)
- does not restart if service can not start (exit-code 255, e.g. wrong configuration, etc.)
- service can be additionally started/stopped with commands (fail2ban-client, fail2ban-server)
8 years ago
Alexey Korepanov
5773eb71b8
ensure /var/run/fail2ban is created in systemd service file
9 years ago
James Hartig
9905396eb8
Added PartOf to service file so f2b restarts when deps do
9 years ago
Ruben Kerkhof
ebed0d23c9
Add documentation link to systemd service file
...
So systemctl help fail2ban.service works
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
11 years ago
Steven Hiscocks
c7c203964c
ENH: Add iptables and firewalld to "After" for systemd service file.
...
Also remove no longer supported syslog.target.
Closes #658
11 years ago
Orion Poplawski
ddebcab9aa
Add After, PIDFile, and change WantedBy to multi-user.target in fail2ban.server
12 years ago
Orion Poplawski
ed386dfe07
Add systemd unit file and tmpfiles.d configuration files
12 years ago