; supervisord program file for the OPHI-118 scene overlay webapp.
;
; Listens on 127.0.0.1:1118 (CH 118.0 in the overlay lore, easy to remember).
;
; Install:
;   sudo install -m 644 scripts/obs-webapp.supervisord.conf /etc/supervisor.d/obs-webapp.conf
;   sudo supervisorctl reread && sudo supervisorctl update
;
; Restart after config / route / env changes:
;   sudo supervisorctl restart obs-webapp
;
; Logs:
;   tail -F webapp/storage/logs/supervisord.{out,err}.log

[program:obs-webapp]
command=/usr/bin/php artisan serve --host=127.0.0.1 --port=1118
directory=/home/jin/.config/obs-studio/webapp
user=jin
environment=HOME="/home/jin",USER="jin",PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
autostart=true
autorestart=true
startsecs=2
startretries=3
stopwaitsecs=10
stopsignal=TERM
stdout_logfile=/home/jin/.config/obs-studio/webapp/storage/logs/supervisord.out.log
stderr_logfile=/home/jin/.config/obs-studio/webapp/storage/logs/supervisord.err.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=3
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=3
