mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-05-13 06:31:29 +00:00
Merge pull request #2537 from viiru-/improve-systemd-service
Improve systemd service
This commit is contained in:
commit
3b8033b337
2 changed files with 2 additions and 3 deletions
|
|
@ -1 +0,0 @@
|
|||
D /run/fail2ban 0755 root root -
|
||||
|
|
@ -7,13 +7,13 @@ PartOf=iptables.service firewalld.service ip6tables.service ipset.service nftabl
|
|||
[Service]
|
||||
Type=simple
|
||||
Environment="PYTHONNOUSERSITE=1"
|
||||
ExecStartPre=/bin/mkdir -p /run/fail2ban
|
||||
RuntimeDirectory=fail2ban
|
||||
StateDirectory=fail2ban
|
||||
ExecStart=@BINDIR@/fail2ban-server -xf start
|
||||
# if should be logged in systemd journal, use following line or set logtarget to sysout in fail2ban.local
|
||||
# ExecStart=@BINDIR@/fail2ban-server -xf --logtarget=sysout start
|
||||
ExecStop=@BINDIR@/fail2ban-client stop
|
||||
ExecReload=@BINDIR@/fail2ban-client reload
|
||||
PIDFile=/run/fail2ban/fail2ban.pid
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=0 255
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue