Opened 12 years ago
Last modified 12 years ago
#38495 closed defect
cassandra can't be started using launchctl — at Version 2
Reported by: | alexs@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | ||
Port: | cassandra |
Description (last modified by neverpanic (Clemens Lang))
This appears to be due to at least 2 different bugs.
Firstly there's this one #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...
Change History (2)
comment:1 Changed 12 years ago by alexs@…
comment:2 Changed 12 years ago by neverpanic (Clemens Lang)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
I fail at WikiFormatting :(