diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/irc_bot/Debian/nagios-nsa.sh.erb | 5 | ||||
-rw-r--r-- | templates/irc_bot/nsa.cfg.erb | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/irc_bot/Debian/nagios-nsa.sh.erb b/templates/irc_bot/Debian/nagios-nsa.sh.erb index 16fa2ea..43c0e79 100644 --- a/templates/irc_bot/Debian/nagios-nsa.sh.erb +++ b/templates/irc_bot/Debian/nagios-nsa.sh.erb @@ -2,8 +2,8 @@ ### BEGIN INIT INFO # Provides: nagios-nsa -# Required-Start: $remote_fs $syslog $nagios -# Required-Stop: $remote_fs $syslog $nagios +# Required-Start: $remote_fs $syslog nagios3 +# Required-Stop: $remote_fs $syslog nagios3 # Default-Start: 2 3 4 5 # Default-Stop: 1 6 0 # Short-Description: Nagios Simple IRC Agent @@ -51,6 +51,7 @@ cleanup() { case $1 in start) + cleanup start ;; stop) diff --git a/templates/irc_bot/nsa.cfg.erb b/templates/irc_bot/nsa.cfg.erb index cc7d274..5dd7d0e 100644 --- a/templates/irc_bot/nsa.cfg.erb +++ b/templates/irc_bot/nsa.cfg.erb @@ -10,4 +10,6 @@ 'channel' => '<%= scope.lookupvar('nagios::irc_bot::nsa_channel') %>', 'pidfile' => '<%= scope.lookupvar('nagios::irc_bot::real_nsa_pidfile') %>', # set to undef to disable 'realname' => "<%= scope.lookupvar('nagios::irc_bot::nsa_realname') %>", + 'usenotices' => "<%= scope.lookupvar('nagios::irc_bot::nsa_usenotices') %>", + 'commandfile' => "<%= scope.lookupvar('nagios::irc_bot::real_nsa_commandfile') %>", ); |