Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Details
Sentry
Sentry
Sentry
Created May 19, 2022 at 11:32 PM
Updated May 20, 2022 at 1:30 AM
Resolved May 19, 2022 at 11:32 PM
BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io
When running a
--console
server, like when using the service manager, the server process is often times killed before it fully shuts down. This caused the.pid.txt
file to not get deleted which can confuse CommandBox on the true status of the server.The Java Process builder does not offer a way to cleanly shutdown a server that is guarunteed not to be forceful, so we need to stop using process.destroy(), in favor of
calling our stop() routine (which is aync)
Calling process.waitFor() with a timeout of 15 seconds
THEN finally calling destroy() as a last attempt
This will give the server JVM a chance to fully shutdown, ensuring the pid file gets removed as well.