A Fishwife sample application, including Linux systemd configuration for boot, monitoring and graceful (e.g. zero requests lost) restarts.
See the configuration in /systemd. The socket config has systemd opening the acceptor socket and passing along to fishwife using Jetty's and the JVM's support for inetd-style socket activation.
The service config uses a custom start script, /bin/guppy which specifies compatible connections and customizes logging to be reasonable for the systemd journal via STDERR. You will need to change the paths as appropriate.
This work is not copyrighted. It is made available on an "as is" basis, without warranties or conditions of any kind, either express or implied. Do whatever you want with it, with absolutely no restrictions, and no permission required.