mirror of https://github.com/apache/cassandra
32 lines
1.3 KiB
Plaintext
Executable File
32 lines
1.3 KiB
Plaintext
Executable File
#! /bin/sh /usr/share/dpatch/dpatch-run
|
|
## cassandra_logdir_fix.dpatch by Michael Shuler <michael@pbandjelly.org>
|
|
##
|
|
## All lines beginning with `## DP:' are a description of the patch.
|
|
## DP: No description.
|
|
|
|
@DPATCH@
|
|
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cassandra~/bin/cassandra cassandra/bin/cassandra
|
|
--- cassandra~/bin/cassandra 2019-06-27 09:35:32.000000000 -0500
|
|
+++ cassandra/bin/cassandra 2019-06-27 09:43:28.756343141 -0500
|
|
@@ -127,7 +127,7 @@
|
|
fi
|
|
|
|
if [ -z "$CASSANDRA_LOG_DIR" ]; then
|
|
- CASSANDRA_LOG_DIR=$CASSANDRA_HOME/logs
|
|
+ CASSANDRA_LOG_DIR=/var/log/cassandra
|
|
fi
|
|
|
|
# Special-case path variables.
|
|
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' cassandra~/conf/cassandra-env.sh cassandra/conf/cassandra-env.sh
|
|
--- cassandra~/conf/cassandra-env.sh 2019-06-27 09:35:32.000000000 -0500
|
|
+++ cassandra/conf/cassandra-env.sh 2019-06-27 09:42:25.747715490 -0500
|
|
@@ -122,7 +122,7 @@
|
|
esac
|
|
|
|
#GC log path has to be defined here because it needs to access CASSANDRA_HOME
|
|
-JVM_OPTS="$JVM_OPTS -Xloggc:${CASSANDRA_HOME}/logs/gc.log"
|
|
+JVM_OPTS="$JVM_OPTS -Xloggc:/var/log/cassandra/gc.log"
|
|
|
|
# Here we create the arguments that will get passed to the jvm when
|
|
# starting cassandra.
|