Last active
August 3, 2017 07:14
-
-
Save mudivili/d0ef74be1808bbd2912f4b046f02c044 to your computer and use it in GitHub Desktop.
Sample Supervisord config
This file contains 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: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