Skip to content

Instantly share code, notes, and snippets.

@mudivili
Last active August 3, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mudivili/d0ef74be1808bbd2912f4b046f02c044 to your computer and use it in GitHub Desktop.
Save mudivili/d0ef74be1808bbd2912f4b046f02c044 to your computer and use it in GitHub Desktop.
Sample Supervisord config
[program:service-name]
numprocs=1
process_name=%(process_num)02d
command = /usr/local/bin/node index.js
directory = /path/to/project
autostart = true
autorestart = true
environment = NODE_PATH="."
user = ubuntu
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
stdout_logfile_backups = 5
stdout_logfile_maxbytes = 10MB
stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
stderr_logfile_backups = 3
stderr_logfile_maxbytes = 2MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment