Permalink
Browse files

Merge pull request #103 from ceocoder/solandra

added -c flag to bin/solandra for client mode
  • Loading branch information...
2 parents 8b044cf + 2016557 commit 951a95ce1ced28418adcded39a4534a86f8e8176 @tjake committed Jun 14, 2011
Showing with 9 additions and 6 deletions.
  1. +9 −6 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

0 comments on commit 951a95c

Please sign in to comment.