process 'sphinx' do pid_file "<%= fetch(:thinking_sphinx_pid_file) %>" start_command "<%= fetch(:rbenv_prefix) %> bundle exec rake ts:start" stop_command "<%= fetch(:rbenv_prefix) %> bundle exec rake ts:stop" # soft restart restart_command "<%= fetch(:rbenv_prefix) %> bundle exec rake ts:restart" check :cpu, :every => 30, :below => 80, :times => 3 start_timeout <%= options[:start_timeout] %>.seconds stop_timeout <%= options[:stop_timeout] %>.seconds restart_timeout <%= options[:restart_timeout] %>.seconds start_grace <%= options[:start_grace] %>.seconds stop_grace <%= options[:stop_grace] %>.seconds restart_grace <%= options[:restart_grace] %>.seconds end