dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
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.
22 lines
586 B
22 lines
586 B
#!/bin/bash
|
|
#
|
|
# SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
#
|
|
|
|
[ -z "$CONF_FOLDER" ] && CONF_FOLDER=${pkg.installFolder}/conf
|
|
jarfile=${pkg.installFolder}/bin/${pkg.name}.jar
|
|
|
|
[ -r "$CONF_FOLDER/${pkg.name}.conf" ] && source "$CONF_FOLDER/${pkg.name}.conf"
|
|
|
|
javaenv=${pkg.installFolder}/bin/java-env
|
|
if [ ! -r "$javaenv" ]; then
|
|
echo "Cannot read $javaenv; reinstall ${pkg.name}." >&2
|
|
exit 1
|
|
fi
|
|
source "$javaenv"
|
|
|
|
require_java "$javaexe"
|
|
|
|
cd "$(dirname "$jarfile")" || exit 1
|
|
exec "$javaexe" $JAVA_OPTS -jar "$jarfile" $RUN_ARGS "$@"
|
|
|