Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bwcx-jzy committed Apr 4, 2023
1 parent 699c844 commit 3e1aa53
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/agent/src/main/bin/Agent.sh
Expand Up @@ -189,6 +189,12 @@ function start() {
echo "silence auto exit 0,${pid}"
exit 0
fi
echo "Jpom agent starting:$pid"
pid=$(getPid)
if [ "$pid" == "" ]; then
echo "Please check the $Log for failure details"
errorExit "Jpom agent Startup failed"
fi
tail -fn 0 --pid="$pid" "$agent_log"
}

Expand Down
6 changes: 6 additions & 0 deletions modules/server/src/main/bin/Server.sh
Expand Up @@ -210,6 +210,12 @@ function start() {
echo "silence auto exit 0,${pid}"
exit 0
fi
echo "Jpom server starting:$pid"
pid=$(getPid)
if [ "$pid" == "" ]; then
echo "Please check the $Log for failure details"
errorExit "Jpom server Startup failed"
fi
tail -fn 0 --pid="$pid" "$server_log"
}

Expand Down

0 comments on commit 3e1aa53

Please sign in to comment.