Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge "[services-ng] Add start/stop handler for mongo proxy in vcap-s…
Browse files Browse the repository at this point in the history
…ervices"
  • Loading branch information
Chunjie authored and Gerrit Code Review committed Nov 28, 2012
2 parents ae1c126 + 30a7e39 commit 70ebbc3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ng/mongodb/lib/mongodb_service/mongodb_node.rb
Expand Up @@ -351,6 +351,7 @@ class VCAP::Services::MongoDB::Node::ProvisionedService
MONGO_TIMEOUT = 2 MONGO_TIMEOUT = 2


SERVICE_PORT = 27017 SERVICE_PORT = 27017
PROXY_PORT = 29017


class << self class << self
def init(args) def init(args)
Expand Down Expand Up @@ -487,8 +488,8 @@ def run(options=start_options, &post_start_block)


def start_options def start_options
options = super options = super
options[:start_script] = {:script => "warden_service_ctl start #{version} #{mongod_exe_options}", :use_spawn => true} options[:start_script] = {:script => "warden_service_ctl start #{adminpass} #{version} #{mongod_exe_options}", :use_spawn => true}
options[:service_port] = SERVICE_PORT options[:service_port] = PROXY_PORT
options options
end end


Expand Down

0 comments on commit 70ebbc3

Please sign in to comment.