Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

Commit

Permalink
Merge pull request #103 from ceocoder/solandra
Browse files Browse the repository at this point in the history
added -c flag to bin/solandra for client mode
  • Loading branch information
tjake committed Jun 14, 2011
2 parents 8b044cf + 2016557 commit 951a95c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions resources/cassandra/solandra
Expand Up @@ -130,7 +130,7 @@ launch_service()
} }


# Parse any command line options. # Parse any command line options.
args=`getopt vfhp:bD: "$@"` args=`getopt vhp:cbD: "$@"`
eval set -- "$args" eval set -- "$args"


classname="solandra.SolandraServer" classname="solandra.SolandraServer"
Expand All @@ -141,18 +141,21 @@ while true; do
pidfile="$2" pidfile="$2"
shift 2 shift 2
;; ;;
-f)
foreground="yes"
shift
;;
-h) -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 exit 0
;; ;;
-v) -v)
$JAVA -cp $CLASSPATH org.apache.cassandra.tools.GetVersion $JAVA -cp $CLASSPATH org.apache.cassandra.tools.GetVersion
exit 0 exit 0
;; ;;
-c)
properties="$properties -Dsolandra.clientmode=true"
shift
;;
-D) -D)
properties="$properties -D$2" properties="$properties -D$2"
shift 2 shift 2
Expand Down

0 comments on commit 951a95c

Please sign in to comment.