From db99cf3dcb103d7c543293d52d174bd5554e6446 Mon Sep 17 00:00:00 2001 From: "limin.zhang" Date: Mon, 17 Apr 2023 18:20:29 +0800 Subject: [PATCH] =?UTF-8?q?2023.04.17=20=E5=A2=9E=E5=8A=A0cmc=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E4=B8=8B=E5=90=AF=E5=8A=A8=E3=80=81=E5=81=9C=E6=AD=A2?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmc/fms-core/startup.sh | 3 +++ cmc/fms-core/stop.sh | 3 +++ cmc/fms-gps/startup.sh | 3 +++ cmc/fms-gps/stop.sh | 3 +++ cmc/fms-master/startup1.sh | 4 ++++ cmc/fms-master/startup2.sh | 4 ++++ cmc/fms-master/stop1.sh | 3 +++ cmc/fms-master/stop2.sh | 3 +++ cmc/fms-notification/startup.sh | 9 +++++++++ cmc/fms-notification/stop.sh | 3 +++ cmc/fms-sns/startup.sh | 8 ++++++++ cmc/fms-sns/stop.sh | 3 +++ 12 files changed, 49 insertions(+) create mode 100644 cmc/fms-core/startup.sh create mode 100644 cmc/fms-core/stop.sh create mode 100644 cmc/fms-gps/startup.sh create mode 100644 cmc/fms-gps/stop.sh create mode 100644 cmc/fms-master/startup1.sh create mode 100644 cmc/fms-master/startup2.sh create mode 100644 cmc/fms-master/stop1.sh create mode 100644 cmc/fms-master/stop2.sh create mode 100644 cmc/fms-notification/startup.sh create mode 100644 cmc/fms-notification/stop.sh create mode 100644 cmc/fms-sns/startup.sh create mode 100644 cmc/fms-sns/stop.sh 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