; The rpcinterface:supervisor section must remain in the config file for ; RPC (supervisorctl/web interface) to work. Additional interfaces may be ; added by defining them in separate [rpcinterface:x] sections.
; The supervisorctl section configures how supervisorctl will connect to ; supervisord. configure it match the settings in either the unix_http_server ; or inet_http_server section.
[supervisorctl] serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket, 透過 unix socket 連接 supervisord, 路徑和 unix_http_server 的 file 一致 serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket, 透過 HTTP 的方式連接 supervisord username=admin ; should be same as in [*_http_server] if set password=admin2020@dwave ; should be same as in [*_http_server] if set ;prompt=mysupervisor ; cmd line prompt (default "supervisor") ;history_file=~/.sc_history ; use readline history if available
; The [include] section can just contain the "files" setting. This ; setting can list multiple files (separated by whitespace or ; newlines). It can also contain wildcards. The filenames are ; interpreted as relative to this file. Included files *cannot* ; include files themselves.
[program:program_name] ; program_name 須為唯一值, 不可重複 directory=<project_dir> ; directory to cwd to before exec (def no cwd) environment=PATH="/home/<user>/anaconda3/envs/api/bin" ; process environment additions (def no adds) command=/home/<user>/anaconda3/envs/api/bin/uwsgi --ini <project_dir>/conf/uwsgi.ini ; the program (relative uses PATH, can take args) autostart=true ; start at supervisord start (default: true) autorestart=true ; when to restart if exited after running (def: unexpected) stdout_logfile=/stdout/logfile/path ; stdout log path, NONE for none; default AUTO stderr_logfile=/stderr/logfile/path ; stderr log path, NONE for none; default AUTO
;process_name=%(program_name)s ; process_name expr (default %(program_name)s) ;numprocs=1 ; number of processes copies to start (def 1) ;umask=022 ; umask for process (default None) ;priority=999 ; the relative start priority (default 999) ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) ;startretries=3 ; max # of serial start failures when starting (default 3) ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) ;stopsignal=QUIT ; signal used to kill process (default TERM) ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) ;stopasgroup=false ; send stop signal to the UNIX process group (default false) ;killasgroup=false ; SIGKILL the UNIX process group (def false) ;user=chrism ; setuid to this UNIX account to run the program ;redirect_stderr=true ; redirect proc stderr to stdout (default false) ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) ;stdout_events_enabled=false ; emit events on stdout writes (default false) ;stdout_syslog=false ; send stdout to syslog with process name (default false) ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) ;stderr_events_enabled=false ; emit events on stderr writes (default false) ;stderr_syslog=false ; send stderr to syslog with process name (default false) ;serverurl=AUTO ; override serverurl computation (childutils)