Skip to content

Commit

Permalink
Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
angbrav committed Dec 4, 2013
1 parent 1e16cf5 commit 6775fc4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Binary file added .generate_ring.sh.swp
Binary file not shown.
1 change: 1 addition & 0 deletions apps/mfmn/src/mfmn_cache.erl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
% These are all wrappers for calls to the server

start() ->
io:format('Starting cache process'),
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).

put(Key, Value) ->
Expand Down
15 changes: 15 additions & 0 deletions generate_ring.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

if [ "$#" = 1 ]
then
SERVER=$1
else
SERVER='[email protected]'
fi

rm -r ./dev/*
make devrel
for d in dev/dev*; do $d/bin/mfmn start; done
for d in dev/dev{2,3}; do $d/bin/mfmn-admin join $SERVER; done
./dev/dev1/bin/mfmn-admin member_status
./dev/dev2/bin/mfmn attach
3 changes: 3 additions & 0 deletions stop_ring.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

for d in dev/dev*; do $d/bin/mfmn stop; done

0 comments on commit 6775fc4

Please sign in to comment.