[supervisord] nodaemon=true logfile=/dev/stdout logfile_maxbytes=0 pidfile=/tmp/supervisord.pid [unix_http_server] file=/tmp/supervisor.sock chmod=0700 [supervisorctl] serverurl=unix:///tmp/supervisor.sock [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [program:horizon] command=php /var/www/pixelfed/artisan horizon directory=/var/www/pixelfed user=pixelfed autostart=true autorestart=true startretries=5 numprocs=1 startsecs=0 process_name=%(program_name)s_%(process_num)02d stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 priority=100 # Kill horizon gracefully on stop stopsignal=TERM stopwaitsecs=60 [program:schedule] command=php /var/www/pixelfed/artisan schedule:work directory=/var/www/pixelfed user=pixelfed autostart=true autorestart=true startretries=5 numprocs=1 startsecs=0 process_name=%(program_name)s_%(process_num)02d stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 priority=200 # Additional worker for high-priority queues (including media) [program:high-priority-worker] command=php /var/www/pixelfed/artisan queue:work --queue=high,mmo,default --sleep=1 --tries=3 --max-time=1800 directory=/var/www/pixelfed user=pixelfed autostart=true autorestart=true startretries=5 numprocs=1 startsecs=0 process_name=%(program_name)s_%(process_num)02d stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 priority=300