Changes between Initial Version and Version 2 of Ticket #38495


Ignore:
Timestamp:
Mar 22, 2013, 2:27:47 PM (11 years ago)
Author:
neverpanic (Clemens Lang)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38495 – Description

    initial v2  
    11This appears to be due to at least 2 different bugs.
    22
    3 Firstly there's this one https://trac.macports.org/ticket/34221
     3Firstly there's this one #34221.
    44
    5 java -version hangs in some circumstances if __CFPREFERENCES_AVOID_DAEMON=1 is not set. This is fixed by adding
     5java -version hangs in some circumstances if `__CFPREFERENCES_AVOID_DAEMON=1` is not set. This is fixed by adding
    66
    7 ```
     7{{{
    88    <string>env</string>
    99    <string>__CFPREFERENCES_AVOID_DAEMON=1</string>
    10 ```
     10}}}
    1111
    1212to the LaunchDaemon plist.
    1313
    1414
    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/.
     15The 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/`.
    1616
    17 Manually setting the PATH in the plist again fixes this but it seems like there's probably a nicer way to do that...
     17Manually setting the `$PATH` in the plist again fixes this but it seems like there's probably a nicer way to do that...