diff --git a/misc/scripts/standalone/local.sh b/misc/scripts/standalone/local.sh index 972b038..8211acf 100755 --- a/misc/scripts/standalone/local.sh +++ b/misc/scripts/standalone/local.sh @@ -1,10 +1,3 @@ #!/bin/sh -# BRouter standalone server -# java -cp brouter.jar btools.brouter.RouteServer [bindaddress] - -# maxRunningTime is the request timeout in seconds, set to 0 to disable timeout -JAVA_OPTS="-Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300" -CLASSPATH=../brouter.jar - -java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer ../segments4 ../profiles2 ../customprofiles 17777 1 localhost +BINDADDRESS="localhost" "$(dirname "$0")/server.sh" diff --git a/misc/scripts/standalone/server.sh b/misc/scripts/standalone/server.sh index f37b0d8..9ea86a8 100755 --- a/misc/scripts/standalone/server.sh +++ b/misc/scripts/standalone/server.sh @@ -2,10 +2,10 @@ cd "$(dirname "$0")" # BRouter standalone server -# java -cp brouter.jar btools.brouter.RouteServer +# java -cp brouter.jar btools.brouter.RouteServer [bindaddress] # maxRunningTime is the request timeout in seconds, set to 0 to disable timeout JAVA_OPTS="-Xmx128M -Xms128M -Xmn8M -DmaxRunningTime=300" CLASSPATH=../brouter.jar -java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer ../segments4 ../profiles2 ../customprofiles 17777 1 +java $JAVA_OPTS -cp $CLASSPATH btools.server.RouteServer ../segments4 ../profiles2 ../customprofiles 17777 1 $BINDADDRESS