Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动/停止脚本在ubuntu14.04中运行异常 #34

Open
991glasses opened this issue Nov 10, 2017 · 0 comments
Open

启动/停止脚本在ubuntu14.04中运行异常 #34

991glasses opened this issue Nov 10, 2017 · 0 comments

Comments

@991glasses
Copy link

991glasses commented Nov 10, 2017

当主机没有运行lanproxy的情况下,执行startup.sh
PIDS=`ps -ef | grep java | grep "$CONF_DIR" |awk '{print $2}'
这行在ubuntu14.04执行后依然能得到一个PID,这个是grep命令的PID,但脚本的逻辑却认为客户端已经在运行了,从而报错退出

建议改成 PIDS=ps -f -C java | grep "$CONF_DIR" |awk '{print $2}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant