diff options
author | kwadronaut <kwadronaut@leap.se> | 2013-01-24 15:50:10 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2013-01-24 15:50:10 +0100 |
commit | 02d2ca2df868262728c67c13d5dbf484c001d380 (patch) | |
tree | 38a33a0e898f2c04b95abb1e86f4befd71a6b563 | |
parent | f8061e19c2ca19032577c8d7a117acb9090b0c53 (diff) |
naming PID and SOCKFILE absent broke things
-rw-r--r-- | templates/irc_bot/Debian/nagios-nsa.sh.erb | 9 |
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() { |