I have a jar executable that I’m trying to run until stop on a linux server. I’ve tried looking at the Java Service Wrapper API, but it was really difficult and I’m not even sure that’s what I want. Is there a way I can run a program on the server so that when I log off the program keeps running? I’m using ssh to login to the server and commandline to run the jar. Thanks!
Share
Run:
The ampersand at the end will run it in a new forked process, so it will continue after you log out.
nohupprevents it from hanging up when its owner logs out.