1 Star 0 Fork 0

WeBankOpenSource/WeIdentity-Sample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
command.sh 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
oueru 提交于 2020-08-07 16:27 . fix the bug of registering cpt
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/WeBankOS/WeIdentity-Sample.git
git@gitee.com:WeBankOS/WeIdentity-Sample.git
WeBankOS
WeIdentity-Sample
WeIdentity-Sample
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385