When I use spring-boot-loader-tools to publish Spring Boot application as a Linux service, sometimes my jar failed to stop due to some personal code error and I have to force stop before starting,like this “service my-app force-stop && service my-app start”. How about adding a "force-restart" command to force restart?
Comment From: wilkinsona
Thanks for the suggestion but I'd prefer to keep the actions as close to those that are required as possible. Combining force-stop
with start
as you have done with service my-app force-stop && service my-app start
feels like a fine solution to me without adding extra complexity to the default launch script. Let's see what the rest of the team thinks.
Comment From: philwebb
I think I agree with @wilkinsona. Whilst the changes to the launch script are minimal, I think we're better off keeping close to the standard actions. I'll close this one for now, but if we get people commenting here we can always reconsider.