Skip to content

Instantly share code, notes, and snippets.

@mariapaulinar
Created March 23, 2018 14:23
Show Gist options
  • Save mariapaulinar/f2ed8d2a063fa3aa58124eb21bc8c801 to your computer and use it in GitHub Desktop.
Save mariapaulinar/f2ed8d2a063fa3aa58124eb21bc8c801 to your computer and use it in GitHub Desktop.
Instalar y configurar supervisor en Ubuntu
/*** Instalar supervisor ***/
sudo apt-get install supervisor
/*** Configurar en: /etc/supervisor/conf.d ***/
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/forge/app.com/artisan queue:work sqs --sleep=3 --tries=3
autostart=true
autorestart=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/home/forge/app.com/worker.log
/*** Fin conf.d ***/
/*** Iniciar supervisor ***/
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start laravel-worker:*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment