Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fbdb2aee29
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (25 sloc) 1.015 kb
check process redis_node
with pidfile /var/vcap/sys/run/redis_node/redis_node.pid
start program "/var/vcap/jobs/redis_node/bin/redis_node_ctl start"
stop program "/var/vcap/jobs/redis_node/bin/redis_node_ctl stop"
group vcap
<%
service = "redis"
plan_enabled = properties.service_plans && properties.service_plans.send(service.to_sym)
plan = properties.plan || "free"
plan_conf = plan_enabled && properties.service_plans.send(service.to_sym).send(plan.to_sym).configuration
if properties.service_lifecycle and plan_enabled and plan_conf.lifecycle and plan_conf.lifecycle.enable
worker_count = plan_conf.lifecycle.worker_count || 1
worker_count.times do |ind|
%>
check process redis_worker_<%= ind %>
with pidfile /var/vcap/sys/run/redis_node/redis_worker_<%= ind %>.pid
start program "/var/vcap/jobs/redis_node/bin/redis_worker_ctl start <%= ind %>"
stop program "/var/vcap/jobs/redis_node/bin/redis_worker_ctl stop <%= ind %>"
group worker
group vcap
depends on redis_node
<%
end
end
%>
Jump to Line
Something went wrong with that request. Please try again.