title: How can supervisord restart the npm start command successfully?
body: <p>I've started the "node start" via supervisord. </p>
  
  <p>My problem is
  Stopping / rebooting at supervisord will cause the node app.js process to remain without being killed</p>
  
  <p>How can supervisord restart the npm start command successfully in this case? </p>
  
  <p>supervisord.conf</p>
  
  <pre><code>[supervisord]
  nodaemon=true
  
  [program:node]
  command=npm start 
  directory=/xx
  stdout_logfile=/dev/stdout
  stdout_logfile_maxbytes=0
  stderr_logfile=/dev/stderr
  stderr_logfile_maxbytes=0
  user=root
  autostart=true
  autorestart=true
  redirect_stderr=true
  exitcodes=1
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>{
    "name": "xx",
    "version": "1.0.0",
    "main": "app.js",
    "scripts": {
      "start": "node app.js"
    },
    "author": "",
    "license": "ISC",
    "dependencies": {
      "xxx
    },
    "devDependencies": {
      "nodemon": "^1.11.0"
    },
    "description": ""
  }
  </code></pre>