Created
October 27, 2014 09:56
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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