| #! /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 2015-10-27 14:35:22.000000000 -0500 |
| +++ cassandra/bin/cassandra 2015-10-27 14:41:38.000000000 -0500 |
| @@ -139,7 +139,7 @@ |
| props="$3" |
| class="$4" |
| cassandra_parms="-Dlogback.configurationFile=logback.xml" |
| - cassandra_parms="$cassandra_parms -Dcassandra.logdir=$CASSANDRA_HOME/logs" |
| + cassandra_parms="$cassandra_parms -Dcassandra.logdir=/var/log/cassandra" |
| cassandra_parms="$cassandra_parms -Dcassandra.storagedir=$cassandra_storagedir" |
| |
| if [ "x$pidpath" != "x" ]; then |
| 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 2015-10-27 14:40:39.000000000 -0500 |
| +++ cassandra/conf/cassandra-env.sh 2015-10-27 14:42:40.647449856 -0500 |
| @@ -204,7 +204,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. |