mirror of
https://github.com/fail2ban/fail2ban.git
synced 2025-11-26 14:20:19 +08:00
Add systemd unit file and tmpfiles.d configuration files
This commit is contained in:
1
files/fail2ban-tmpfiles.conf
Normal file
1
files/fail2ban-tmpfiles.conf
Normal file
@@ -0,0 +1 @@
|
||||
D /var/run/fail2ban 0755 root root -
|
||||
12
files/fail2ban.service
Normal file
12
files/fail2ban.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Fail2ban Service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/fail2ban-client -x start
|
||||
ExecStop=/usr/bin/fail2ban-client stop
|
||||
ExecReload=/usr/bin/fail2ban-client reload
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=network.target
|
||||
Reference in New Issue
Block a user