Skip to content

Instantly share code, notes, and snippets.

@RivenZoo
Created December 19, 2016 11:03
Show Gist options
  • Select an option

  • Save RivenZoo/0d13b4e669778da240cfae50fc03a50f to your computer and use it in GitHub Desktop.

Select an option

Save RivenZoo/0d13b4e669778da240cfae50fc03a50f to your computer and use it in GitHub Desktop.
supervisor example program config
; supervisor config
[program:program_name]
command = command_without_shell_symbol
process_name=%(program_name)s ; process_name expr (default %(program_name)s)
directory=/program_work_dir
autostart=true ; start at supervisord start (default: true)
autorestart=true ; whether/when to restart (default: unexpected)
startretries=3
stopasgroup=true
stopsignal=TERM
stopwaitsecs=200
startsecs=5
user=root
redirect_stderr=true
stdout_logfile_maxbytes=20MB
stdoiut_logfile_backups=10
stdout_logfile = /data/logs/program.log
environment=PATH="/var/program/envs/bin" ; process environment additions (def no adds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment