[ 
https://issues.apache.org/jira/browse/CASSANDRA-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931435#action_12931435
 ] 

Eric Evans commented on CASSANDRA-1689:
---------------------------------------

bq. I don't know much about the debian packaging (the debian/default file gets 
loaded when the service starts?), but to me it seems like the mx4j variable and 
classpath variable should be in conf/cassandra-env.sh. That way we can remove 
any duplication.

The classpath is pretty system specific, you're not going to get a 
one-size-fits-all solution to this I don't think.  Debian systems at least will 
build the classpath out of the jars in /usr/share/cassandra, but that's not 
going to work for svn checkouts, or windows machines for that matter.

bq. The debian/default file will get installed as /etc/default/cassandra, and 
that is explicitly sourced by the initscript if it exists.

I removed /e/d/cassandra after we started shipping cassandra-env.sh because 
they're basically intended to fill the same role; to make it more obvious were 
we think you should make these sorts of site-specific changes.  I think it's a 
good idea to have the init script continue to source it if it's there though.

bq. If we're worried about duplicating code between the debian and redhat 
initscripts, why not merge them together? I understand Redhat has supported all 
the LSB initscript stuff too for some time now, so the debian one should work 
as is, modulo maybe some hardcoded paths that should be separated into a small 
distro-specific piece.

We can try this, but I'd be really surprised if it didn't end up making a mess 
out of one or the other, or both, (and if not now, eventually).

> avoid nuking system classpath
> -----------------------------
>
>                 Key: CASSANDRA-1689
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1689
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Packaging
>            Reporter: Jonathan Ellis
>            Assignee: Nick Bailey
>            Priority: Minor
>             Fix For: 0.7.1
>
>         Attachments: 1689-patch.txt, 1689-redhat.txt
>
>
> this will allow using system packages for jna on debian and redhat

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to