Permalink
Browse files

Fix listen block in config template

  • Loading branch information...
1 parent d0b0cfd commit b64951b564eee8e19453c5cc55a3bc454398aa88 @xdissent xdissent committed Apr 19, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 templates/default/monitrc.erb
@@ -17,8 +17,7 @@ set mail-format {
set alert <%= node["monit"]["notify_email"] %> NOT ON { action, instance, pid, ppid }
-set httpd port <%= node["monit"]["port"] %> and<%= "and\n use address #{node["monit"]["listen"]}" unless node["monit"]["listen"].nil? %>
- use address localhost
+set httpd port <%= node["monit"]["port"] %> <%= "and\n use address #{node["monit"]["listen"]}" unless node["monit"]["listen"].nil? %>
<% node["monit"]["allow"].each do |a| %>allow <%= "#{a}\n" %><% end %>
include /etc/monit/conf.d/*.conf

0 comments on commit b64951b

Please sign in to comment.