generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf in axtro-rubber-1.0.2.8 vs generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf in axtro-rubber-1.2.0
- old
+ new
@@ -2,9 +2,9 @@
@path = '/etc/monit/monit.d/monit-sphinx.conf'
%>
check process sphinx with pidfile <%= RUBBER_ROOT %>/log/searchd.<%= RUBBER_ENV %>.pid
group sphinx-<%= RUBBER_ENV %>
- start program = "/usr/bin/sudo -u rails sh -c 'cd <%= RUBBER_ROOT %> && PATH=/usr/local/bin:$PATH RAILS_ENV=<%= RUBBER_ENV %> rake ts:start'"
- stop program = "/usr/bin/sudo -u rails sh -c 'cd <%= RUBBER_ROOT %> && PATH=/usr/local/bin:$PATH RAILS_ENV=<%= RUBBER_ENV %> rake ts:stop'"
+ start program = "/usr/bin/sudo -u rails sh -c 'cd <%= RUBBER_ROOT %> && PATH=<%= rubber_env.ruby_prefix %>/bin:/usr/local/bin:$PATH RAILS_ENV=<%= RUBBER_ENV %> rake ts:start'"
+ stop program = "/usr/bin/sudo -u rails sh -c 'cd <%= RUBBER_ROOT %> && PATH=<%= rubber_env.ruby_prefix %>/bin:/usr/local/bin:$PATH RAILS_ENV=<%= RUBBER_ENV %> rake ts:stop'"
if failed host <%= rubber_env.host %> port 3312 with timeout 5 seconds for 5 cycles then restart