You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
riskshell/shell/checkPort

10 lines
217 B

4 years ago
#!/bin/sh
4 years ago
# 检查客户端和服务端端口是否存在
#存在返回0否则返回1
4 years ago
source /app/riskenv
4 years ago
if [[ ! -z "`/app/findPortPid $PORT`" && ! -z "`/app/findPortPid $serverPort`" ]]
4 years ago
then
echo 0
else
echo 1
fi