2020-03-07 14:03:18

This commit is contained in:
monlor
2020-03-07 14:03:19 +08:00
parent 4c56e56e10
commit f370563c8d
2 changed files with 3 additions and 4 deletions

View File

@@ -135,8 +135,7 @@ stop () {
status() {
result=$(pssh | grep ${mbroot}/apps/${appname}/bin/${appname} | grep -v grep | wc -l)
if [ "$result" == '0' ]; then
if [ -n "$(pidof "${BINPATH}")" ]; then
status="未运行|0"
else
status="运行端口号: ${port}|1"