diff --git a/cmc/fms-core/startup.sh b/cmc/fms-core/startup.sh new file mode 100644 index 0000000..b310a8e --- /dev/null +++ b/cmc/fms-core/startup.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-core +nohup /opt/cap/fms-core/fms-core/bin/fms -Dconfig.file=/opt/cap/fms-core/cmc.conf -Dlogger.file=/opt/cap/fms-core/logback.xml > core.log 2>&1 & diff --git a/cmc/fms-core/stop.sh b/cmc/fms-core/stop.sh new file mode 100644 index 0000000..c61412a --- /dev/null +++ b/cmc/fms-core/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-core +kill -9 `cat /opt/cap/fms-core/fms-core/RUNNING_PID` && rm /opt/cap/fms-core/fms-core/RUNNING_PID diff --git a/cmc/fms-gps/startup.sh b/cmc/fms-gps/startup.sh new file mode 100644 index 0000000..0ad0187 --- /dev/null +++ b/cmc/fms-gps/startup.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-gps +nohup /opt/cap/fms-gps/fms-gps/bin/fms_gps -Dconfig.file=/opt/cap/fms-gps/cmc.conf -Dhttp.port=9004 -Dlogger.file=/opt/cap/fms-gps/logback.xml > gps.log 2>&1 & diff --git a/cmc/fms-gps/stop.sh b/cmc/fms-gps/stop.sh new file mode 100644 index 0000000..aed34d1 --- /dev/null +++ b/cmc/fms-gps/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-gps +kill -9 `cat /opt/cap/fms-gps/fms-gps/RUNNING_PID` && rm /opt/cap/fms-gps/fms-gps/RUNNING_PID.pid diff --git a/cmc/fms-master/startup1.sh b/cmc/fms-master/startup1.sh new file mode 100644 index 0000000..5e078ba --- /dev/null +++ b/cmc/fms-master/startup1.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd /opt/cap/fms-master +nohup /usr/bin/java -Dconfig.file=master1.conf -Dlogback.configurationFile=/opt/cap/fms-master/logback.xml -jar fms-master.jar 2551 > master1.log 2>&1 & +echo $! > master1.pid diff --git a/cmc/fms-master/startup2.sh b/cmc/fms-master/startup2.sh new file mode 100644 index 0000000..7c24fce --- /dev/null +++ b/cmc/fms-master/startup2.sh @@ -0,0 +1,4 @@ +#!/bin/bash +cd /opt/cap/fms-master +nohup /usr/bin/java -Dconfig.file=master2.conf -Dlogback.configurationFile=/opt/cap/fms-master/logback.xml -jar fms-master.jar 2552 > master2.log 2>&1 & +echo $! > master2.pid diff --git a/cmc/fms-master/stop1.sh b/cmc/fms-master/stop1.sh new file mode 100644 index 0000000..2590769 --- /dev/null +++ b/cmc/fms-master/stop1.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-master +kill -9 `cat master1.pid` && rm master1.pid diff --git a/cmc/fms-master/stop2.sh b/cmc/fms-master/stop2.sh new file mode 100644 index 0000000..5a7e901 --- /dev/null +++ b/cmc/fms-master/stop2.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-master +kill -9 `cat master2.pid` && rm master2.pid diff --git a/cmc/fms-notification/startup.sh b/cmc/fms-notification/startup.sh new file mode 100644 index 0000000..bc05d7c --- /dev/null +++ b/cmc/fms-notification/startup.sh @@ -0,0 +1,9 @@ +#!/bin/bash +export ENV_CLUSTER=cmc +export APP_NAME=fms +export SERVICE_NAME=notification +export POD_NAME=linux +cd /opt/cap/fms-notification +nohup /opt/cap/fms-notification/fms-notification > nohup.log 2>&1 & +echo $! > notification.pid + diff --git a/cmc/fms-notification/stop.sh b/cmc/fms-notification/stop.sh new file mode 100644 index 0000000..27ab8f4 --- /dev/null +++ b/cmc/fms-notification/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-notification +kill -9 `cat notification.pid` && rm notification.pid diff --git a/cmc/fms-sns/startup.sh b/cmc/fms-sns/startup.sh new file mode 100644 index 0000000..0f44f92 --- /dev/null +++ b/cmc/fms-sns/startup.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export ENV_CLUSTER=cmc +export APP_NAME=fms +export SERVICE_NAME=sns +export POD_NAME=linux +cd /opt/cap/fms-sns +nohup /opt/cap/fms-sns/fms-sns > nohup.log 2>&1 & +echo $! > sns.pid diff --git a/cmc/fms-sns/stop.sh b/cmc/fms-sns/stop.sh new file mode 100644 index 0000000..ae0cc94 --- /dev/null +++ b/cmc/fms-sns/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd /opt/cap/fms-sns +kill -9 `cat sns.pid` && rm sns.pid