; Supervisor program for the my.itcarrot.com Reverb (WebSocket) server. ; AlmaLinux + cPanel, supervisor installed via EPEL: config dir is ; /etc/supervisord.d/*.ini (confirmed via `grep include /etc/supervisord.conf`), ; service name is `supervisord`, not `supervisor`. ; ; Uses the full EA4 CLI binary path, NOT bare `php` — for the `kartulirest` ; user, plain `php` resolves to the CGI/FastCGI SAPI (php -v shows ; "(cgi-fcgi)"), which can't run artisan console commands or hold a socket ; open as a daemon. Confirmed working CLI binary: ea-php83, reports "(cli)". ; If the domain's assigned PHP version ever changes (WHM -> MultiPHP Manager), ; update this path to match. ; ; Install alongside other projects' programs without touching them: ; sudo cp deploy/supervisor/my-itcarrot-reverb.ini /etc/supervisord.d/my-itcarrot-reverb.ini ; sudo supervisorctl reread ; picks up only this new/changed file ; sudo supervisorctl update ; starts only the new program, leaves others running ; ; Matches .env: REVERB_SERVER_HOST=0.0.0.0, REVERB_SERVER_PORT=8099. ; This only binds Reverb locally (127.0.0.1:8099 for the PHP backend). Browsers ; reach it through the public domain over HTTPS, proxied by Apache/EA4 to this ; local port — see deploy/apache/my-itcarrot-reverb.conf (added via WHM's ; Include Editor or a userdata drop-in, NOT by hand-editing the live vhost). ; ; Port 8099, not the Reverb default 8080/8088 — something else on this server ; (unidentified: not cron, not a systemd --user unit, not chkservd, not another ; supervisor program) was aggressively respawning a process on both 8080 and ; 8088 within ~2s of being killed, fighting this program for the port. Moved ; to 8099 to sidestep it rather than keep hunting for the source. [program:my-itcarrot-reverb] command=/opt/cpanel/ea-php83/root/usr/bin/php /home/kartulirest/public_html/my.itcarrot.com/artisan reverb:start --host=0.0.0.0 --port=8099 directory=/home/kartulirest/public_html/my.itcarrot.com autostart=true autorestart=true stopasgroup=true killasgroup=true user=kartulirest numprocs=1 redirect_stderr=true stdout_logfile=/home/kartulirest/public_html/my.itcarrot.com/storage/logs/reverb.log stopwaitsecs=30