From 131ec46d082787e79a7e4bb08ff984886c439fa5 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Thu, 14 Jul 2011 05:25:13 -0400 Subject: IRC-bot: cleanup socket file on startup It may sometimes happen that the bot dies or gets killed and the socket file is not cleaned up. When using the init script with 'start', as puppet does, the socket file blocks the bot from starting. --- templates/irc_bot/Debian/nagios-nsa.sh.erb | 1 + 1 file changed, 1 insertion(+) (limited to 'templates') diff --git a/templates/irc_bot/Debian/nagios-nsa.sh.erb b/templates/irc_bot/Debian/nagios-nsa.sh.erb index 6e608db..7de660d 100644 --- a/templates/irc_bot/Debian/nagios-nsa.sh.erb +++ b/templates/irc_bot/Debian/nagios-nsa.sh.erb @@ -51,6 +51,7 @@ cleanup() { case $1 in start) + cleanup start ;; stop) -- cgit v1.2.3