Add documentation.
This commit is contained in:
@ -26,3 +26,24 @@ EOF
|
||||
|
||||
systemctl daemon-reload
|
||||
systemctl enable fail2ban.service
|
||||
|
||||
# - An alternative systemd configuration
|
||||
# -
|
||||
cat << EOF > /etc/systemd/system/fail2ban.service
|
||||
[Unit]
|
||||
Description=Fail2Ban Service
|
||||
Documentation=man:fail2ban(1)
|
||||
After=network.target iptables.service firewalld.service
|
||||
PartOf=iptables.service firewalld.service
|
||||
|
||||
[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
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user