Permalink
Browse files

updated servers rake task.

  • Loading branch information...
1 parent 1a6a091 commit 3878fd33223917e71dada5355b56a5c39b63a509 @abecciu abecciu committed Aug 3, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 priv/tasks/run.rake
View
@@ -10,16 +10,15 @@ namespace :server do
1.upto(4) do |i|
desc "start server #{i}"
task "start#{i}" => [".erlang.cookie", :compile] do
- existing_server = i > 1 ? " -gen_cluster_known '#{SERVER}' " : ""
stop = ENV['STOP'] ? " -s init stop " : ""
- sh %Q{erl -pa #{root}/ebin -pa #{root}/test/ebin -pa #{root}/deps/*/ebin \
+ sh %Q{GPROC_SEEDS=#{SERVER} \
+erl -pa #{root}/ebin -pa #{root}/test/ebin -pa #{root}/deps/*/ebin \
-name "example_cluster_srv#{i}@#{Socket.gethostname}" \
-setcookie abc \
+W w \
-boot start_sasl \
-s reloader \
-s example_cluster_srv start \
-#{existing_server} \
#{stop}
}, :verbose => true
end

0 comments on commit 3878fd3

Please sign in to comment.