no message
This commit is contained in:
@@ -61,9 +61,6 @@ jobs:
|
|||||||
PID=$(cat "$PID_FILE")
|
PID=$(cat "$PID_FILE")
|
||||||
echo "pid=$PID"
|
echo "pid=$PID"
|
||||||
if ! kill -0 "$PID" 2>/dev/null; then
|
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
|
echo "pid $PID not alive" >&2
|
||||||
sudo -n tail -n 50 "$DEPLOY_DIR/logs/app.log" >&2 || true
|
sudo -n tail -n 50 "$DEPLOY_DIR/logs/app.log" >&2 || true
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user