Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created October 27, 2014 09:56
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badsyntax/0e937159f26ac82f41fa to your computer and use it in GitHub Desktop.
Save badsyntax/0e937159f26ac82f41fa to your computer and use it in GitHub Desktop.
Set stopasgroup to true to tell supervisor to send the stop signal to the whole process group to prevent orphaned processes when starting/stopping supervisord. This is required when running npm scripts from supervisor.
[program:node-server]
directory=/var/www
command=/usr/bin/npm start
stopasgroup=true
autostart=true
autorestart=true
[program:node-watch]
directory=/var/www
command=/usr/bin/npm run watch
stopasgroup=true
autostart=true
autorestart=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment