Changes between Initial Version and Version 2 of Ticket #38495
- Timestamp:
- Mar 22, 2013, 2:27:47 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #38495 – Description
initial v2 1 1 This appears to be due to at least 2 different bugs. 2 2 3 Firstly there's this one https://trac.macports.org/ticket/342213 Firstly there's this one #34221. 4 4 5 java -version hangs in some circumstances if __CFPREFERENCES_AVOID_DAEMON=1is not set. This is fixed by adding5 java -version hangs in some circumstances if `__CFPREFERENCES_AVOID_DAEMON=1` is not set. This is fixed by adding 6 6 7 ``` 7 {{{ 8 8 <string>env</string> 9 9 <string>__CFPREFERENCES_AVOID_DAEMON=1</string> 10 ``` 10 }}} 11 11 12 12 to the LaunchDaemon plist. 13 13 14 14 15 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/.15 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/`. 16 16 17 Manually setting the PATHin the plist again fixes this but it seems like there's probably a nicer way to do that...17 Manually setting the `$PATH` in the plist again fixes this but it seems like there's probably a nicer way to do that...