From 39ad5b7474158c6fdb4b94935fe97f53e59fe69e Mon Sep 17 00:00:00 2001 From: Cameron Norman Date: Sat, 19 Apr 2014 15:10:19 -0700 Subject: [PATCH] Update Upstart job: uses stop command in pre-stop, removes PID file in post-stop --- files/fail2ban.upstart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/fail2ban.upstart b/files/fail2ban.upstart index 8a7ba10c0..baabb22bc 100644 --- a/files/fail2ban.upstart +++ b/files/fail2ban.upstart @@ -12,4 +12,6 @@ end script 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