#38495: cassandra can't be started using launchctl ---------------------+-------------------------------- Reporter: alexs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: cassandra ---------------------+-------------------------------- 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... -- Ticket URL: <https://trac.macports.org/ticket/38495> MacPorts <http://www.macports.org/> Ports system for OS X