You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
601 B
30 lines
601 B
#!/bin/sh |
|
## |
|
## neo4j-shell.sh -- Neo4J Client Shell Startup Wrapper |
|
## |
|
|
|
cp="" |
|
for file in \ |
|
@l_prefix@/lib/neo4j/server/*.jar \ |
|
@l_prefix@/lib/neo4j/plugin/*.jar; do |
|
if [ -f $file ]; then |
|
if [ ".$cp" = . ]; then |
|
cp="$file" |
|
else |
|
cp="$cp:$file" |
|
fi |
|
fi |
|
done |
|
|
|
NEO4J_HOME=@l_prefix@/var/neo4j |
|
export NEO4J_HOME |
|
cd $NEO4J_HOME |
|
|
|
exec @l_prefix@/bin/java \ |
|
-Vsun-jdk -Xms1024m -Xmx2048m -cp "$cp" \ |
|
-Dapp.name="neo4j-shell" \ |
|
-Dapp.pid="$$" \ |
|
-Dapp.repo="@l_prefix@/lib/neo4j" \ |
|
org.neo4j.shell.StartClient \ |
|
${1+"$@"} |
|
|
|
|