From 6e520987ac41ef144f236c05b8095f285251471b Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 7 Feb 2011 00:36:10 +0100 Subject: fix pid/socket location for centos, open firewall if we want to connect to an irc server --- templates/irc_bot/CentOS/nagios-nsa.sh.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/irc_bot') diff --git a/templates/irc_bot/CentOS/nagios-nsa.sh.erb b/templates/irc_bot/CentOS/nagios-nsa.sh.erb index a6cee66..1561afd 100644 --- a/templates/irc_bot/CentOS/nagios-nsa.sh.erb +++ b/templates/irc_bot/CentOS/nagios-nsa.sh.erb @@ -25,6 +25,8 @@ SOCKFILE=<%= nagios_nsa_socket %> [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog lockfile=/var/lock/subsys/$prog +mkdir -p /var/run/nagios-nsa 2>/dev/null +chown nagios /var/run/nagios-nsa start() { [ -x $exec ] || exit 5 -- cgit v1.2.3