title: Start a jar file like service in linux
body: <p>I want to start and stop my jar file as follows</p>
  
  <p><code>service myService start</code></p>
  
  <p><code>service myService stop</code></p>
  
  <p>my current jar file running as follows</p>
  
  <pre><code>cd /home/alex/IdeaProjects/myService
  java -jar target/myService-SNAPSHOT-1.jar server config.yml
  </code></pre>
  
  <p>What should I do?</p>