Skip to content

所有启动脚本都无法在Mac下工作 #8

@zhangyijun

Description

@zhangyijun

版本: 2.4.10

似乎脚本都使用了ps -f,在Mac OS平台 无法工作,类似下面错误

PIDS=ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}'
ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}'
ps: illegal option -- f
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-u]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
echo "PID: $PIDS"
PID:
echo "STDOUT: $STDOUT_FILE"
STDOUT: logs/stdout.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions