1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # File modified for PLD Linux.
18 # Sets minimal configs necessary to run cassandra and cassandra CLI from
19 # /usr/share/cassandra/*.jar
20 # Should easily allow to run multibple cassandra instaces by only providing
23 if [ "x$CASSANDRA_HOME" = "x" ]; then
24 CASSANDRA_HOME=/var/lib/cassandra
27 # The directory where Cassandra's configs live (required)
28 if [ "x$CASSANDRA_CONF" = "x" ]; then
29 CASSANDRA_CONF=$CASSANDRA_HOME/conf
32 # This can be the path to a jar file, or a directory containing the
33 # compiled classes. NOTE: This isn't needed by the startup script,
34 # it's just used here in constructing the classpath.
35 # cassandra_bin=$CASSANDRA_HOME/build/classes
36 # cassandra_bin=/usr/share/cassandra
38 # JAVA_HOME can optionally be set here
39 #JAVA_HOME=/usr/local/jdk6
41 # The java classpath (required)
42 CLASSPATH=$CASSANDRA_CONF # :$cassandra_bin
44 # for jar in $CASSANDRA_HOME/lib/*.jar; do
45 # CLASSPATH=$CLASSPATH:$jar
48 # for jar in /usr/share/cassandra/*.jar; do
49 # CLASSPATH=$CLASSPATH:$jar
51 CLASSPATH=$CLASSPATH:/usr/share/cassandra/*:/usr/share/java/*