aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-10-15 13:52:35 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2010-10-15 13:52:35 +0200
commit7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff (patch)
treeff858a14f88ded8db53d47f16dd4f685c7563033
parent2daaa9ada2754448a25686d66d9fc0ad25945265 (diff)
downloaderlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.tar.gz
erlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.tar.xz
erlang-7292f0a6d61127b4c7ba3c830fe62f73c7ef3cff.zip
improved server/start.sh
-rwxr-xr-xserver/start.sh8
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 $@