[
https://issues.apache.org/jira/browse/CASSANDRA-17773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17683374#comment-17683374
]
Stefan Miklosovic edited comment on CASSANDRA-17773 at 2/2/23 1:21 PM:
-----------------------------------------------------------------------
_As you can see the new file is sourced as you suggest, though without the
$CASSANDRA_HOME_
All I am saying is to change
{code:java}
. ./cassandra-conf.sh
{code}
to
{code:java}
. $CASSANDRA_HOME/conf/cassandra-conf.sh
{code}
or wherever that cassandra-conf.sh ends up being located. Right now it is in
"bin". Would you mind to move it to "conf" directory instead?
Something like this would be preferable:
{code}
if [ -z $CASSANDRA_HOME ]; then
. $(dirname "$0")/../conf/cassandra-conf.sh
else
. $CASSANDRA_HOME/conf/cassandra-conf.sh
fi
{code}
was (Author: smiklosovic):
_As you can see the new file is sourced as you suggest, though without the
$CASSANDRA_HOME_
All I am saying is to change
{code:java}
. ./cassandra-conf.sh
{code}
to
{code:java}
. $CASSANDRA_HOME/conf/cassandra-conf.sh
{code}
or wherever that cassandra-conf.sh ends up being located. Right now it is in
"bin". Would you mind to move it to "conf" directory instead?
> Incorrect cassandra.logdir on Debian systems
> --------------------------------------------
>
> Key: CASSANDRA-17773
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17773
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Reporter: Eric Evans
> Assignee: Claude Warren
> Priority: Normal
> Labels: lhf
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 4.x
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> The Debian packaging patches bin/cassandra to use /var/log/cassandra for
> logs, it does so conditionally however, only if CASSANDRA_LOG_DIR is unset.
> This occurs _after_ cassandra-env.sh is sourced though, which also sets
> CASSANDRA_LOG_DIR if unset (to $CASSANDRA_HOME/logs). The result is that
> -Dcassandra.lodir is set to /usr/share/cassandra/logs on Debian systems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]