Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added client mode option to bin/solandra

  • Loading branch information...
commit 201655734d6113126ccd45df01dbbc0419737eab 1 parent 68bfd91
@ceocoder authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 resources/cassandra/solandra
View
15 resources/cassandra/solandra
@@ -130,7 +130,7 @@ launch_service()
}
# Parse any command line options.
-args=`getopt vfhp:bD: "$@"`
+args=`getopt vhp:cbD: "$@"`
eval set -- "$args"
classname="solandra.SolandraServer"
@@ -141,18 +141,21 @@ while true; do
pidfile="$2"
shift 2
;;
- -f)
- foreground="yes"
- shift
- ;;
-h)
- echo "Usage: $0 [-f] [-h] [-p pidfile]"
+ echo "Usage: $0 [-h] [-c] [-p pidfile]"
+ echo " -v : print cassandra version"
+ echo " -h : prints this help message"
+ echo " -c : starts solandra in client mode"
exit 0
;;
-v)
$JAVA -cp $CLASSPATH org.apache.cassandra.tools.GetVersion
exit 0
;;
+ -c)
+ properties="$properties -Dsolandra.clientmode=true"
+ shift
+ ;;
-D)
properties="$properties -D$2"
shift 2
Please sign in to comment.
Something went wrong with that request. Please try again.