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

34 lines (31 sloc) 1.303 kb
check process warden
with pidfile /var/vcap/sys/run/warden/warden.pid
start program "/var/vcap/jobs/mongodb_node_ng/bin/warden_ctl start"
stop program "/var/vcap/jobs/mongodb_node_ng/bin/warden_ctl stop"
group vcap
check process mongodb_node
with pidfile /var/vcap/sys/run/mongodb_node/mongodb_node.pid
start program "/var/vcap/jobs/mongodb_node_ng/bin/mongodb_node_ctl start"
stop program "/var/vcap/jobs/mongodb_node_ng/bin/mongodb_node_ctl stop"
group vcap
depends on warden
<%
service = "mongodb"
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 mongodb_worker_<%= ind %>
with pidfile /var/vcap/sys/run/mongodb_node/mongodb_worker_<%= ind %>.pid
start program "/var/vcap/jobs/mongodb_node_ng/bin/mongodb_worker_ctl start <%= ind %>"
stop program "/var/vcap/jobs/mongodb_node_ng/bin/mongodb_worker_ctl stop <%= ind %>"
group worker
group vcap
depends on mongodb_node
<%
end
end
%>
Jump to Line
Something went wrong with that request. Please try again.