java"s web service is deployed on linux. When upgrading a new version of kill-9 XXXX, some unprocessed requests are aborted, especially some operations to write to the database.
is there any way to stop service after the current request is successfully completed?
Note: procedure for upgrading the service version :
- stop the old version of the service (kill-9 xxxxx)
- start a new service.