You can clone with
No one assigned
When I start Neo4j on SmartOS I use this script:
ulimit -n 65536
`dirname $0`/bin/neo4j start-no-wait
That works, but I get this:
/opt/local/bin/lsof: illegal option -- T
Can you confirm the version of lsof that ships with SmartOS? And what version of SmartOS are you running?
I got the same problem on a Joyent cluster. SmartOS seems to have a very different lsof which has totally different command line options:
Usage: /opt/local/bin/lsof [options]
-p Display port information for all processes
-f Display file information for all processes
-P <pid> Show all ports used by this process
-F <pid> Show all files used by this process
-o <port> Show all processes that use this port
-i <file> Show all processes that use this file
-d <directory> Show all processes that use this directory
uname -a gave me:
SunOS 5.11 joyent_20121108T183247Z i86pc i386 i86pc Solaris
After removing the lsof command line from neo4j starting script, it still fails to start.
@webjay I made a change to the start script like this and it worked.
if [ $DIST_OS = "solaris" ] ; then
## SmartOS has a different lsof command line arguments
newpid=$(lsof -o $NEO4J_SERVER_PORT | grep '::' | head -n1 | cut -d ' ' -f 1)
## This could be achieved with filtering using -sTCP:LISTEN but this option is not available
## on lsof v4.78 which is the one bundled with some distros. So we have to do this grep below
newpid=$(lsof -i :$NEO4J_SERVER_PORT -F T -Ts | grep -i "TST=LISTEN" -B1 | head -n1)
Also you need to point JAVA_HOME to a Java 7 installation. You were using Java 6.