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

agent/bin/agent-cmd.sh flock选项-e错误 #101

Open
slpcat opened this issue Sep 26, 2018 · 0 comments
Open

agent/bin/agent-cmd.sh flock选项-e错误 #101

slpcat opened this issue Sep 26, 2018 · 0 comments

Comments

@slpcat
Copy link

slpcat commented Sep 26, 2018

(flock -n -e 200 || { echo "instance already exist, please wait and try later!" ; exit 1 ; }
flock选项 -e 和 -x 是相同选项,并且默认打开。
alpine linux 的flock已经去除-e,所以需要改成-x或者去掉,否则运行报错

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