. ~/.profile
CURUSER=`whoami`
if [ `ps -fu $CURUSER|grep PMNP|grep -v grep|wc -l` -eq '3' ]
then
echo "`date +'[%Y-%m-%d %H:%M:%S]'` The PMNP is running ........"
else
echo "`date +'[%Y-%m-%d %H:%M:%S]'` PMNP process restart... "
ps -fu $CURUSER|grep PMNP|grep -v grep|awk {'print $2'}|xargs kill
#MNP-receive NP message process
nohup java -Xms64m -Xmx128m -cp ../AutoSP.jar -DPNAME=PMNP_GET -DPROCESS=YES -DCONFIGFILE=../spconfig_mnp.xml com.huawei.bo
ss.mnp.gate.MsgProcess 15 15 2>&1 >>../tasklog/mnp_get`date +%Y%m%d`.log &
#MNP-Send NP message to CRDB
nohup java -Xms64m -Xmx128m -cp ../AutoSP.jar -DPNAME=PMNP_SEND -DPROCESS=YES -DCONFIGFILE=../spconfig_mnp.xml com.huawei.b
oss.sp.gate.BizProcComm tbcs1 1 " where plattype LIKE 'COIN'" 10 60 2>&1 >>../tasklog/mnp_send`date +%Y%m%d`.log &
#MNP-resend NP message process
nohup java -Xms64m -Xmx128m -cp ../AutoSP.jar -DPNAME=PMNP_SESEND -DPROCESS=YES -DCONFIGFILE=../spconfig_mnp.xml com.huawei
.boss.mnp.gate.ResendMsgProcess 10 300 2>&1 >>../tasklog/mnp_resend`date +%Y%m%d`.log &
fi
shell 启动程序
最新推荐文章于 2024-12-06 16:06:53 发布