summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-24 15:51:31 +0100
committervarac <varacanero@zeromail.org>2013-01-24 15:51:31 +0100
commitaa311e3c219dfabc881201817e825e623615a9a6 (patch)
treebd967016cb6ba66cbbab37e2eb92e64541a8c242 /templates
parent0573775b0a8dca71cec147ec3f724d32add66812 (diff)
parent02d2ca2df868262728c67c13d5dbf484c001d380 (diff)
Merge branch 'master' of ssh://code.leap.se/puppet_nagios
Diffstat (limited to 'templates')
-rw-r--r--templates/irc_bot/Debian/nagios-nsa.sh.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/irc_bot/Debian/nagios-nsa.sh.erb b/templates/irc_bot/Debian/nagios-nsa.sh.erb
index 7295a37..4e91cda 100644
--- a/templates/irc_bot/Debian/nagios-nsa.sh.erb
+++ b/templates/irc_bot/Debian/nagios-nsa.sh.erb
@@ -9,9 +9,16 @@
# Short-Description: Nagios Simple IRC Agent
### END INIT INFO
+<% if @scope.lookupvar('nagios::irc_bot::base::nsa_pidfile') %>
PIDFILE=<%= scope.lookupvar('nagios::irc_bot::base::nsa_pidfile') %>
+<% else %>
+PIDFILE=/var/run/nagios3/nsa.pid
+<% end %>
+<% if @scope.lookupvar('nagios::irc_bot::base::nsa_socket') %>
SOCKFILE=<%= scope.lookupvar('nagios::irc_bot::base::nsa_socket') %>
-
+<% else %>
+SOCKFILE=/var/run/nagios3/nsa.socket
+<% end %>
. /lib/lsb/init-functions
start() {