summaryrefslogtreecommitdiffstats
path: root/src/main/docker/startService.sh
blob: 6bb041451bbf5578b00e12429cfb351c62433b8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh


cd /opt/app
preStartFile="/opt/app/bin/pre_start.sh"
if [ -f "$preStartFile" ]
then
	echo "Executing $preStartFile ... ..."
	$preStartFile
else
	echo "$preStartFile not found."
fi

cd /opt/app
if [ -z "${java_runtime_arguments}" ]; then
	java -Dlogging.config=config/logback.xml -Xms128m -Xmx512m -jar /opt/app/lib/pomba-context-aggregator.jar

else
	java -Dlogging.config=config/logback.xml $java_runtime_arguments -jar /opt/app/lib/pomba-context-aggregator.jar
fi