Permalink
Browse files

use the mash

  • Loading branch information...
Hoang Xuan Phu
Hoang Xuan Phu committed Jul 26, 2012
1 parent 7fea149 commit 6f8dd529cae08b2b47603ffc9f33ba52770ed920
Showing with 4 additions and 3 deletions.
  1. +4 −3 supervisor/templates/default/_etc_supervisord.conf.erb
@@ -131,15 +131,16 @@ serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
;files = relative/directory/*.ini
<%
-program_default = {
+program_default = Mash.new({
:autorestart => 'unexpected',
:autostart => 'true',
-}
+})
-%>
<% node[:supervisor][:programs].each do |program| -%>
- <% program = program_default.merge(program) -%>
+<% program = program_default.merge(program) %>
[program:<%= program[:name] %>]
command=<%= program[:command] %>
user=<%= program[:user] %>
autorestart=<%= program[:autorestart] %>
+autostart=<%= program[:autostart] %>
<% end -%>

0 comments on commit 6f8dd52

Please sign in to comment.