Add After, PIDFile, and change WantedBy to multi-user.target in fail2ban.server

pull/142/head
Orion Poplawski 2013-04-17 09:27:06 -06:00
parent ed386dfe07
commit ddebcab9aa
1 changed files with 3 additions and 1 deletions

View File

@ -1,12 +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=network.target
WantedBy=multi-user.target