2023.04.17 增加cmc环境下启动、停止相关脚本。
This commit is contained in:
		
							
								
								
									
										3
									
								
								cmc/fms-core/startup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-core/startup.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 & | ||||
							
								
								
									
										3
									
								
								cmc/fms-core/stop.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-core/stop.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
							
								
								
									
										3
									
								
								cmc/fms-gps/startup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-gps/startup.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 & | ||||
							
								
								
									
										3
									
								
								cmc/fms-gps/stop.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-gps/stop.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
							
								
								
									
										4
									
								
								cmc/fms-master/startup1.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								cmc/fms-master/startup1.sh
									
									
									
									
									
										Normal 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 | ||||
							
								
								
									
										4
									
								
								cmc/fms-master/startup2.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								cmc/fms-master/startup2.sh
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-master/stop1.sh
									
									
									
									
									
										Normal 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
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-master/stop2.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| #!/bin/bash | ||||
| cd /opt/cap/fms-master | ||||
| kill -9 `cat master2.pid` && rm master2.pid | ||||
							
								
								
									
										9
									
								
								cmc/fms-notification/startup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								cmc/fms-notification/startup.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
|  | ||||
							
								
								
									
										3
									
								
								cmc/fms-notification/stop.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-notification/stop.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| #!/bin/bash | ||||
| cd /opt/cap/fms-notification | ||||
| kill -9 `cat notification.pid` && rm notification.pid | ||||
							
								
								
									
										8
									
								
								cmc/fms-sns/startup.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								cmc/fms-sns/startup.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||
							
								
								
									
										3
									
								
								cmc/fms-sns/stop.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								cmc/fms-sns/stop.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| #!/bin/bash | ||||
| cd /opt/cap/fms-sns | ||||
| kill -9 `cat sns.pid` && rm sns.pid | ||||
		Reference in New Issue
	
	Block a user