-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
当主机没有运行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}'
The text was updated successfully, but these errors were encountered: