added start script
This commit is contained in:
parent
66468ff789
commit
cd9ef46cae
1 changed files with 16 additions and 0 deletions
16
bin/start-akka-server.sh
Normal file
16
bin/start-akka-server.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# -gt 1 ];
|
||||||
|
then
|
||||||
|
echo 'USAGE: bin/start-akka-server.sh [akka_home]'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
base_dir=$(dirname $0)/..
|
||||||
|
|
||||||
|
for file in $base_dir/lib/*.jar;
|
||||||
|
do
|
||||||
|
CLASSPATH=$CLASSPATH:$file
|
||||||
|
done
|
||||||
|
|
||||||
|
java -Xmx1G -server -cp $CLASSPATH -Dcom.sun.management.jmxremote com.scalablesolutions.akka.Boot com.scalablesolutions.akka.kernel.Kernel ${1}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue