title: How to create a start/stop/restart Linux service for Sails.js
body: <p>I want to create a <strong>start/stop/restart</strong> service on Linux for <strong>Sails.js</strong>.</p>
  
  <p><br>
  Will start Sails (similar to <code>sails lift</code> command):</p>
  
  <pre><code>sudo service myapp start
  </code></pre>
  
  <p>Will stop Sails:</p>
  
  <pre><code>sudo service myapp stop
  </code></pre>
  
  <p>Will restart Sails:</p>
  
  <pre><code>sudo service myapp restart
  </code></pre>
  
  <p><br>
  I found this <a href="https://stackoverflow.com/questions/18687818/auto-reloading-a-sails-js-app-on-code-changes">link</a>, but it doesn't work as expected.</p>