Update Upstart job: uses stop command in pre-stop, removes PID file in post-stop

pull/686/head
Cameron Norman 2014-04-19 15:10:19 -07:00
parent 0ef5027234
commit 39ad5b7474
1 changed files with 3 additions and 1 deletions

View File

@ -12,4 +12,6 @@ end script
exec /usr/bin/fail2ban-client -x start exec /usr/bin/fail2ban-client -x start
post-stop exec /usr/bin/fail2ban-client stop pre-stop exec /usr/bin/fail2ban-client stop
post-stop exec rm -f /var/run/fail2ban/fail2ban.pid