title: Logs not showing up when running JAR as a service
body: <p>I have a fat JAR (<a href="http://projects.spring.io/spring-boot/" rel="nofollow">Spring Boot</a>) that if I start using <code>java -jar filename.jar</code> creates two log files: one application log (that's usually stdout) and another one that creates an entry each time the webserver is hit.</p>
  
  <p>Now when I start this as a service with a file in <em>/etc/init.d/</em> (see snippet below) I don't get any log files created (other than <em>/opt/service-name/log</em> that only shows stdout before the application starts). It's not a permission issue - I tried starting the service with a user that doesn't have permissions and it doesn't start. And I tried <code>find / logfile.log</code> with no luck.</p>
  
  <pre><code>daemon --user=root --pidfile=/var/run/service-name.pid java -jar /opt/service-name/filename.jar &gt; /opt/service-name/log 2&gt;&amp;1 &amp; echo $!
  </code></pre>
  
  <p>Any ideas why the log files are not being created?</p>