Skip to content

Instantly share code, notes, and snippets.

@kentaro
Last active December 25, 2015 09:59
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 kentaro/6958739 to your computer and use it in GitHub Desktop.
Save kentaro/6958739 to your computer and use it in GitHub Desktop.
supervisord configuration sample
[program:program_name]
command = plackup ...
process_name = %(program_name)s
user = user_name
environment = HOME=/home/user_name
directory = /app/program_name
stdout_logfile = /var/log/supervisor/%(program_name)s.log
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 10
stderr_logfile = /var/log/supervisor/%(program_name)s_err.log
stderr_logfile_maxbytes = 50MB
stderr_logfile_backups = 10
autostart = true
autorestart = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment