Last active
August 1, 2020 17:09
-
-
Save VMuliadi/1b9d0ca04c037efedf59c98832888013 to your computer and use it in GitHub Desktop.
Supervisor configuration using eventlistener
This file contains hidden or 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
| [eventlistener:audiod] | |
| directory=/home/pi/audio-player/ | |
| command=/home/pi/.local/bin/gunicorn --bind 0.0.0.0:5000 wsgi:app ; the program (relative uses PATH, can take args) | |
| process_name=%(program_name)s ; process_name expr (default %(program_name)s) | |
| umask=022 ; umask for process (default None) | |
| user=pi ; setuid to this UNIX account to run the program | |
| autorestart=unexpected ; autorestart if exited after running (def: unexpected) | |
| stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) | |
| autostart=true ; start at supervisord start (default: true) | |
| events=TICK_60 ; event notif. types to subscribe to (req'd) | |
| exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) | |
| numprocs=1 ; number of processes copies to start (def 1) | |
| stdout_logfile=/home/pi/supervisor/audiod/audiod.log ; stdout log path, NONE for none; default AUTO | |
| stdout_events_enabled=false ; emit events on stderr writes (default false) | |
| stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) | |
| stdout_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) | |
| stdout_syslog=false ; send stdout to syslog with process name (default false) | |
| stderr_logfile=/home/pi/supervisor/audiod/audiod_err.log ; stderr log path, NONE for none; default AUTO | |
| stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) | |
| stderr_events_enabled=false ; emit events on stderr writes (default false) | |
| stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) | |
| redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners | |
| stderr_syslog=false ; send stderr to syslog with process name (default false) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment