Skip to content

Instantly share code, notes, and snippets.

@mashurex
Forked from tsabat/supervisor.conf
Last active August 29, 2015 14:23
Show Gist options
  • Save mashurex/8a2d04840c443adc4467 to your computer and use it in GitHub Desktop.
Save mashurex/8a2d04840c443adc4467 to your computer and use it in GitHub Desktop.
; Sample supervisor config file for running a Laravel queue listener.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
umask=022 ; (process file creation umask;default 022)
; the below 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: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[program:artisan_queue]
command=php artisan queue:listen --tries=3 --env=production
directory=/var/www/html
stdout_logfile=/var/log/application.log
redirect_stderr=true
autostart=true
autorestart=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment