代码拉取完成,页面将自动刷新
#!/bin/bash -x
daemon_pid=
JAVA_OPTS='-Djdk.tls.namedGroups="secp256r1,secp256k1"'
if [[ "$1" != "issuer" ]];then
if [[ "$1" != "user_agent" ]];then
if [[ "$1" != "verifier" ]];then
if [[ "$1" != "daemon" ]];then
echo "please input the correct parameters:issuer, user_agent, verifier, daemon"
exit 1
fi
fi
fi
fi
getDaemonPid(){
daemon_pid=`ps aux|grep "DemoCommand" | grep "daemon" | grep -v grep|awk '{print $2}'|head -1`
}
if [[ "$1" == daemon ]];then
getDaemonPid
if [ -n "$daemon_pid" ];then
echo "the AMOP server already start."
exit 1
fi
java ${JAVA_OPTS} -cp dist/app/*:resources/:dist/lib/* com.webank.weid.demo.command.DemoCommand $1 >/dev/null 2>&1 &
sleep 2
getDaemonPid
if [ -n "$daemon_pid" ];then
echo "the AMOP server start success."
else
echo "the AMOP server start fail."
fi
else
echo "--------- start $1 ----------"
java ${JAVA_OPTS} -cp dist/app/*:resources/:dist/lib/* com.webank.weid.demo.command.DemoCommand $1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。