add fix-service to distr
This commit is contained in:
parent
2aa9d21c70
commit
a122186b56
5 changed files with 40 additions and 1 deletions
1
pom.xml
1
pom.xml
|
|
@ -56,6 +56,7 @@
|
|||
<folder_root_gateway-api>${folder_root_clearing}/clearing-parent/gateway-api</folder_root_gateway-api>
|
||||
<folder_root_xml-exporter>${folder_root_clearing}/clearing-parent/xml-exporter</folder_root_xml-exporter>
|
||||
<folder_root_xml-importer>${folder_root_clearing}/clearing-parent/xml-importer</folder_root_xml-importer>
|
||||
<folder_root_fix-service>${folder_root_clearing}/clearing-parent/fix-service</folder_root_fix-service>
|
||||
<!-- IMDG -->
|
||||
<external_libraries.hazelcast.version>3.12.4</external_libraries.hazelcast.version>
|
||||
<external_libraries.slf4j.version>1.7.33</external_libraries.slf4j.version>
|
||||
|
|
|
|||
|
|
@ -614,6 +614,33 @@
|
|||
</fileSets>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>copy-fix-service-bin</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>copy</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<sourceFile>${folder_root_fix-service}/target/fix-service.jar</sourceFile>
|
||||
<destinationFile>${folder.clearing.distr.bin}/fix-service.jar</destinationFile>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<sourceFile>${folder_root_fix-service}/target/fix-service.jar</sourceFile>
|
||||
<destinationFile>${folder.clearing.distr.services}/fix-service/fix-service.jar</destinationFile>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<sourceFile>${folder_root_fix-service}/src/main/resources/application.properties</sourceFile>
|
||||
<destinationFile>${folder.clearing.distr.settings}/fix-service/application.properties</destinationFile>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<sourceFile>${folder_root_fix-service}/src/main/resources/fix.cfg</sourceFile>
|
||||
<destinationFile>${folder.clearing.distr.settings}/fix-service/fix.cfg</destinationFile>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
|
|
|
|||
9
z-distr/src/main/resources/distr/sh/fix-service.sh
Normal file
9
z-distr/src/main/resources/distr/sh/fix-service.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
CLEARING_HOME=/opt/mfd/clearing/
|
||||
cd $CLEARING_HOME/bin
|
||||
|
||||
CMD="java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7011 -jar fix-service.jar --spring.config.location=$CLEARING_HOME/settings/fix-service/"
|
||||
|
||||
$CMD >/dev/null 2>&1 &
|
||||
|
||||
|
|
@ -21,4 +21,5 @@ kill -9 $(ps -ef | grep java | grep registry-service.jar | awk '{print $2}')
|
|||
kill -9 $(ps -ef | grep java | grep swt-importer.jar | awk '{print $2}')
|
||||
kill -9 $(ps -ef | grep java | grep gateway-api.jar | awk '{print $2}')
|
||||
kill -9 $(ps -ef | grep java | grep xml-exporter.jar | awk '{print $2}')
|
||||
kill -9 $(ps -ef | grep java | grep xml-importer.jar | awk '{print $2}')
|
||||
kill -9 $(ps -ef | grep java | grep xml-importer.jar | awk '{print $2}')
|
||||
kill -9 $(ps -ef | grep java | grep fix-service.jar | awk '{print $2}')
|
||||
|
|
@ -22,3 +22,4 @@ cd /opt/mfd/clearing/bin
|
|||
/opt/mfd/clearing/bin/gateway-api.sh
|
||||
/opt/mfd/clearing/bin/xml-exporter.sh
|
||||
/opt/mfd/clearing/bin/xml-importer.sh
|
||||
/opt/mfd/clearing/bin/fix-service.sh
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue