Shutdown script requires -force to kill the dotCMS process
dotCMS requires the use of ``-force when calling the shutdown script. Graceful shutdown is not possible, even passing down a long timeout argument to the shutdown script.
Expected Behavior
The process should stop gracefully when the shutdown script is called
Current Behavior
The shutdown script should be called two times or with -force\, the process is abruptly killed
Known Workarounds
Use `-force` switch when calling tomcat's shutdown script
Steps to Reproduce (for bugs)
This is reproducible using the exploded WAR on Tomcat and the default startup/shutdown scripts. It's also reproducible on the distro using embedded tomcat:
- Change the shutdown.sh script and remove the `
-force` flag on the command execution - Startup dotCMS
- Attempt to shutdown dotCMS
Context
This is mostly not observed on the distro because the default script uses the `-force`, but it becomes more obvious when deploying dotCMS as a WAR.
Your Environment
- dotCMS version used: 4.0.1/4.1.0
- Operating System and version: Linux
- Application Server and version: Tomcat (distro, 8.5.15)
- Java Brand and version: openjdk version "1.8.0_121"
This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.