Advertisement
Guest User

Untitled

a guest
Feb 1st, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Install Supervisor with `sudo apt-get install supervisor` in Unix or `brew install supervisor` in Mac OSX. Ensure it's started with `sudo service supervisor restart` in Unix or `brew services start supervisor` in Mac OSX.
  2.  
  3. In Unix in `/etc/supervisord/conf.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). Give it execute permissions: `chmod +x laravel_queue.conf`.
  4.  
  5. In Mac OSX first run `supervisord -c /usr/local/etc/supervisord.ini` and in `/usr/local/etc/supervisor.d/` create a `.conf` file. In this example, `laravel_queue.conf` (contents below). Give it execute permissions: `chmod +x laravel_queue.conf`.
  6.  
  7. This file points at `/usr/local/bin/run_queue.sh`, so create that file there. Give this execute permissions, too: `chmod +x run_queue.sh`.
  8.  
  9. Now update Supervisor with: `sudo supervisorctl reread` in Unix and with: `brew services restart supervisor` in MAc OSX . And start using those changes with: `sudo supervisorctl update`.
  10.  
  11. Now run your supervisor queues by `run_queue.sh`.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement