title: How to start passenger production when ubuntu or server starts?
body: <p>I developed a Ruby On Rails application and want to deploy in production (intranet).
  As of now i created an sh file to run the passenger like so:</p>
  
  <pre><code>cd /pathofmyapp
  passenger start -a 0.0.0.0 -p 3000 -d -e production
  cd /pathofmyapp2
  passenger start -a 0.0.0.0 -p 3000 -d -e production
  </code></pre>
  
  <p>When the ubuntu server starts i have to execute the sh or manually start the passenger.
  Is their a way to automate this so that whenever the ubuntu server starts, the command will automatically run or the ruby on rails application will start?</p>
  
  <p>Thanks in advance.</p>