summarylogtreecommitdiffstats
path: root/neo4j.executable-template
blob: d09fa5ad76ee54b15eee8aae428aa1200e299629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

BASEDIR=/usr/share/java/neo4j

export NEO4J_HOME="${NEO4J_HOME:-/var/lib/neo4j}"
export NEO4J_CONF="${NEO4J_CONF:-/etc/neo4j}"

for name in "$BASEDIR"/*.jar ; do
  CLASSPATH=$CLASSPATH:$name
done

SCALADIR=/usr/share/scala/lib/
for name in "$SCALADIR"/*.jar ; do
  CLASSPATH=$CLASSPATH:$name
done

export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"
exec java \
  -classpath "$CLASSPATH" \
  -Dapp.name="%APP_NAME%" \
  -Dapp.pid="$$" \
  -Dapp.repo="$BASEDIR" \
  -Dapp.home="$BASEDIR" \
  -Dbasedir="$BASEDIR" \
  %CLASS_NAME% \
  "$@"