-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
jetty.sh reports FAILED too early #10904
Comments
Jetty version(s) Jetty Environment Java version/vendor (use: java -version) OS type/version This happens to me systematically with Jetty 12.0.10 at every reboot. I had to add a
in
|
Are you using jetty setuid? |
My workaround is to always remove the jetty.state file before calling |
No, I am not using the jetty setuid. |
I am going to adopt your workaround too, seems more robust than mine. |
Opened PR #12081 to address this. |
Issue #10904 Reorder pid and state file checks
Jetty version(s)
12.0.3
Jetty Environment
ee10
Java version/vendor
(use: java -version)
17.0.9
OS type/version
Debian 12.2
Description
Repeatedly starting and stopping jetty using the
jetty.sh
script, it sometimes happens thatjetty.sh start
reports FAILED. This seems to be because thestarted()
function in the shell script is run too fast, while an oldjetty.state
file has not yet been overwritten and has STOPPED as its last line (from the previous run of jetty).How to reproduce?
Run
jetty.sh start
. Then stop it using the shell script. Then start again. Repeat a few times and it will happen sooner or laterThe text was updated successfully, but these errors were encountered: