Start a jar file like service in linux [closed]
I want to start and stop my jar file as follows service myService start service myService stop my current jar file running as follows cd /home/alex/IdeaProjects/myService java -jar target/myService-SNAPSHOT-1.jar server config.yml What should I do? You need a Service Wrapper to run the Jar file. There are examples and instructions for init.d here. or for systemd (ubuntu 16+) here user2684301 I prefer a light weight, free, bash script rather than a more elaborate system that requires licensing. http://gustavostraube.wordpress.com/2009/11/05/writing-an-init-script-for-a-java-application/ Running