forked from SmartCambridge/tfc_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·43 lines (32 loc) · 2.39 KB
/
run.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#
# Usage:
# ./run.sh [optional JAR filename]
#
# If no jar filename is given, "./acp.jar" will be used.
#
# run.sh - run a working set of Adaptive City Platform modules in 'production' mode
#
# Find the directory this script is being run from, because that will contain the JAR files
# typically "/home/acp_prod/acp_prod/"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# set jar filename to arg given on command line OR default to "acp.jar"
ACP_JAR=${1:-acp.jar}
cd $SCRIPT_DIR
# #############################################################################################
# ################ CONSOLE #############################################
# #############################################################################################
nohup java -cp "$ACP_JAR:secrets:configs" -Xmx100m -Xms10m -Xmn2m -Xss10m io.vertx.core.Launcher run "service:console.A" -cluster >/dev/null 2>>/var/log/acp_prod/console.A.err & disown
# #############################################################################################
# ################ LOCAL MQTT FEED HANDLER #############################################
# #############################################################################################
nohup java -cp "$ACP_JAR:secrets:configs" -Xmx100m -Xms10m -Xmn2m -Xss10m io.vertx.core.Launcher run "service:feedmqtt.local" -cluster >/dev/null 2>>/var/log/acp_prod/feedmqtt.local.err & disown
# #############################################################################################
# ################ MQTT MSGFILER #############################################
# #############################################################################################
nohup java -cp "$ACP_JAR:secrets:configs" -Xmx100m -Xms10m -Xmn2m -Xss10m io.vertx.core.Launcher run "service:msgfiler.mqtt" -cluster >/dev/null 2>>/var/log/acp_prod/msgfiler.mqtt.err & disown
# #############################################################################################
# ################ RTMONITOR #############################################
# #############################################################################################
# RTMONITOR.A
nohup java -cp "$ACP_JAR:secrets:configs" -Xmx100m -Xms10m -Xmn2m -Xss10m io.vertx.core.Launcher run "service:rtmonitor.A" -cluster >/dev/null 2>>/var/log/acp_prod/rtmonitor.A.err & disown