no message
This commit is contained in:
@@ -61,9 +61,6 @@ jobs:
|
||||
PID=$(cat "$PID_FILE")
|
||||
echo "pid=$PID"
|
||||
if ! kill -0 "$PID" 2>/dev/null; then
|
||||
kill -0 "$PID" 2>/dev/null
|
||||
result=$?
|
||||
echo "exit code = $result" # 0 表示活着,非0表示死了
|
||||
echo "pid $PID not alive" >&2
|
||||
sudo -n tail -n 50 "$DEPLOY_DIR/logs/app.log" >&2 || true
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user