Skip to content

Instantly share code, notes, and snippets.

@kodekracker
Created November 24, 2015 11:10
Show Gist options
  • Select an option

  • Save kodekracker/654b65f1ddd2931b3143 to your computer and use it in GitHub Desktop.

Select an option

Save kodekracker/654b65f1ddd2931b3143 to your computer and use it in GitHub Desktop.
A template of supervisor conf for project
[program:PROJECT_NAME]
command = PROJECT_RUN_FILE_PATH
process_name = %(program_name)s
numprocs = 1
directory = PROJECT_DIR
user = USERNAME
autostart = true
autorestart = true
startsecs = 10
startretries = 3
exitcodes = 0,2
stopsignal = TERM
stopwaitsecs = 10
stdout_logfile = LOG_FILE_PATH
stdout_logfile_maxbytes = 1MB
stdout_logfile_backups = 10
stdout_capture_maxbytes = 1MB
stderr_logfile = ERROR_FILE_PATH
stderr_logfile_maxbytes = 1MB
stderr_logfile_backups = 10
stderr_capture_maxbytes = 1MB
environment = ENVIRONMENT_VARIABLES_WITH_COMMA_SEPARATED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment