Sha256: c64340f6e3209701da85e84ab8b1021b6105f71ef3f6a20ec0bf4f7996509e95

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

<%
  @path = '/etc/monit/monit.d/monit-sphinx.conf'

  pidfile = "#{RUBBER_ROOT}/log/searchd.#{RUBBER_ENV}.pid"
  start_program = "cd #{RUBBER_ROOT} && rake ts:start"
  stop_program = "cd #{RUBBER_ROOT} && rake ts:stop"
%>

check process sphinx with pidfile <%= pidfile %>
  group sphinx-<%= RUBBER_ENV %>
  start program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> bash -l -c '<%= start_program %>'"
  stop program = "/usr/bin/sudo -H -u <%= rubber_env.app_user %> bash -l -c '<%= stop_program %>'"
  if failed host <%= rubber_env.host %> port 3312 with timeout 5 seconds for 5 cycles then restart

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
rubber-1.10.2 generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf
rubber-1.10.2 lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf
rubber-1.10.1 generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf
rubber-1.10.1 lib/generators/vulcanize/templates/sphinx/config/rubber/role/sphinx/monit-sphinx.conf