Skip to content

Instantly share code, notes, and snippets.

View shotap's full-sized avatar

Shota Papiashvili shotap

  • Tel Aviv, Israel
View GitHub Profile
@badsyntax
badsyntax / supervisord.conf
Created October 27, 2014 09:56
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