--- bin/cassandra.orig 2020-04-10 22:29:25 UTC +++ bin/cassandra @@ -31,7 +31,7 @@ # JVM_OPTS -- Additional arguments to the JVM for heap size, etc # JVM_ON_OUT_OF_MEMORY_ERROR_OPT -- The OnOutOfMemoryError JVM option if specified # CASSANDRA_CONF -- Directory containing Cassandra configuration files. -# CASSANDRA_LOG_DIR -- Directory containing logs(default: $CASSANDRA_HOME/logs). +# CASSANDRA_LOG_DIR -- Directory containing logs(default: /var/log/cassandra). # # As a convenience, a fragment of shell is sourced in order to set one or # more of these variables. This so-called `include' can be placed in a @@ -116,7 +116,7 @@ if [ -f "$CASSANDRA_CONF/cassandra-env.sh" ]; then fi if [ -z "$CASSANDRA_LOG_DIR" ]; then - CASSANDRA_LOG_DIR=$CASSANDRA_HOME/logs + CASSANDRA_LOG_DIR=/var/log/cassandra fi # Special-case path variables.