title: Starting service as non root user
body: <p>Can someone help us understand how to properly start our programs service as the services user (marty for example).</p>
  
  <p>We're using init.d to start our process (java application), but when the system(s) boot (Ubuntu and Debian) because the service script is run as root, we're having problems where the application is starting as root too and the PID file is being created by root which is messing things up.</p>
  
  <p>We tried using sudo, but this is not a great solution as we dont want the sudo process running too with our application as a child process plus we need this to work on other systems that may not have sudo. Please help.</p>