2023.04.17 增加cmc环境下启动、停止相关脚本。

This commit is contained in:
2023-04-17 18:20:29 +08:00
parent c232533028
commit db99cf3dcb
12 changed files with 49 additions and 0 deletions

View File

@ -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

View File

@ -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

3
cmc/fms-master/stop1.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd /opt/cap/fms-master
kill -9 `cat master1.pid` && rm master1.pid

3
cmc/fms-master/stop2.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd /opt/cap/fms-master
kill -9 `cat master2.pid` && rm master2.pid