title: start daemon on remote server via Jenkins SSH shell script exits mysteriously
body: <p>I have a build job on jenkins that is building my project and after it is done, it opens an ssh shell script on a remote server and transfers files and then stop and starts a daemon.</p>
  
  <p>When I stop and start the daemon from the command line on a RHEL server, it executes just fine.  When the job executes in jenkins, there are no errors.</p>
  
  <p>The daemon stops fine and it starts fine.  But shortly after starting, the daemon dies suddenly.  </p>
  
  <pre><code>sudo service daemonName stop
  # transfer files.
  sudo service daemonName start
  </code></pre>
  
  <p>I'm sure that the problem isn't pathing</p>
  
  <p>Does anyone know what could be special about the way Jenkins is executing the ssh shell script that would cause the daemon start to not fully complete?</p>