Opened 12 years ago
Last modified 11 years ago
#38495 closed defect
cassandra can't be started using launchctl — at Initial Version
Reported by: | alexs@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | cassandra |
Description
This appears to be due to at least 2 different bugs.
Firstly there's this one https://trac.macports.org/ticket/34221
java -version hangs in some circumstances if CFPREFERENCES_AVOID_DAEMON=1 is not set. This is fixed by adding
`
<string>env</string> <string>CFPREFERENCES_AVOID_DAEMON=1</string>
`
to the LaunchDaemon plist.
The next problem is (I think) that the /opt/local/share/java/cassandra-1.2.2/conf/cassandra-env.sh script requires /usr/sbin/sysctl but the PATH it's running in under launchd doesn't have /usr/sbin/.
Manually setting the PATH in the plist again fixes this but it seems like there's probably a nicer way to do that...
Note: See
TracTickets for help on using
tickets.