diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-10-15 13:52:35 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-10-15 13:52:35 +0200 |
commit | 7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff (patch) | |
tree | ff858a14f88ded8db53d47f16dd4f685c7563033 | |
parent | 2daaa9ada2754448a25686d66d9fc0ad25945265 (diff) | |
download | erlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.tar.gz erlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.tar.xz erlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.zip |
improved server/start.sh
-rwxr-xr-x | server/start.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/start.sh b/server/start.sh index 3ba2502..995102b 100755 --- a/server/start.sh +++ b/server/start.sh @@ -1,3 +1,9 @@ #!/bin/sh cd $(dirname $0) -erl -name distributed_music_system_main_node -eval "dispatcher:start()." -noshell $@ + +if [ "$1" != "" -a "${1:0:1}" != "-" ]; then + ip="@${1}" + shift +fi + +erl -name distributed_music_system_main_node${ip} -eval "dispatcher:start()." -noshell $@ |