Run a local shell script by using NCPA
Posted: Thu May 04, 2023 2:21 pm
Hi Team,
I have a shell script as below:
/opt/TEST_CDC/cdc-processor-audit/bin/audit-processor.sh 0 2500
This script will start up this JVM:
/opt/java/java8/latest/bin/java -Duser.timezone=Pacific/Honolulu -Xms256m -Xmx512m -cp config:./lib/* -Dlog4j.configuration=file:config/log4j.xml -Dcom.med.common.globals=config/audit-processor-globals.xml -DspringConfig=springConfig/processorContext.xml -Dcom.med.rpt.eventprocessor.commons.GenericSpringInvoker.bean=pipelinedEventCopier com.med.rpt.eventprocessor.commons.GenericSpringInvoker copy 0 2500
How do I use NCPA agent to monitor and start up the script if the jvm is stopped any any reason?
Thanks,
I have a shell script as below:
/opt/TEST_CDC/cdc-processor-audit/bin/audit-processor.sh 0 2500
This script will start up this JVM:
/opt/java/java8/latest/bin/java -Duser.timezone=Pacific/Honolulu -Xms256m -Xmx512m -cp config:./lib/* -Dlog4j.configuration=file:config/log4j.xml -Dcom.med.common.globals=config/audit-processor-globals.xml -DspringConfig=springConfig/processorContext.xml -Dcom.med.rpt.eventprocessor.commons.GenericSpringInvoker.bean=pipelinedEventCopier com.med.rpt.eventprocessor.commons.GenericSpringInvoker copy 0 2500
How do I use NCPA agent to monitor and start up the script if the jvm is stopped any any reason?
Thanks,