title: Linux: process into a service
body: <p>I am trying to make a linux executable as a service</p>
  
  <p>I execute my program like this below</p>
  
  <pre><code>java -jar mytestprogram.jar
  </code></pre>
  
  <p>creates a process that runs continuously and serves REST requests. But I want to run it as a service where I can do</p>
  
  <pre><code>service mytestprogram start
  service mytestprogram stop
  service mytestprogram status
  chkconfig mytestprogram on
  </code></pre>
  
  <p>etc. What is the most simple way of doing it?</p>