Permalink
Browse files

[services-ng] Add start/stop handler for mongo proxy in vcap-services

Change-Id: Ia6fb7629b018eef4e1ae7f106cb7eec6ade228ad
  • Loading branch information...
1 parent ddf52a5 commit 30a7e39f2de3d7f2320607217d3032498b809594 Chunjie committed Nov 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 ng/mongodb/lib/mongodb_service/mongodb_node.rb
@@ -351,6 +351,7 @@ class VCAP::Services::MongoDB::Node::ProvisionedService
MONGO_TIMEOUT = 2
SERVICE_PORT = 27017
+ PROXY_PORT = 29017
class << self
def init(args)
@@ -487,8 +488,8 @@ def run(options=start_options, &post_start_block)
def start_options
options = super
- options[:start_script] = {:script => "warden_service_ctl start #{version} #{mongod_exe_options}", :use_spawn => true}
- options[:service_port] = SERVICE_PORT
+ options[:start_script] = {:script => "warden_service_ctl start #{adminpass} #{version} #{mongod_exe_options}", :use_spawn => true}
+ options[:service_port] = PROXY_PORT
options
end

0 comments on commit 30a7e39

Please sign in to comment.