title: Tool for creating a Java daemon service on Linux
body: <p>What is the best way to create a java application that can be run using ‘service’ on Linux? I was going to use the JSW available <a href="http://wrapper.tanukisoftware.org/" rel="nofollow noreferrer">here</a>, but cannot use the licence on that (licence is either GPL or it costs money as far as I can tell). I’d need an apache style licence.</p>
  
  <p>I’m using maven to build, so it would be great if it was possible to create the service using a maven plugin, but any other suggestions would be great.</p>
  
  <p>I've seen <a href="http://commons.apache.org/daemon/" rel="nofollow noreferrer">Apache Commons Daemon</a>, is there a maven plugin for this? Documentation seems sparse, so a working example of this would be good...</p>
  
  <p>Thanks</p>