Last Updated: February 25, 2016
· milesj

Run Laravels queue listener indefinitly in the background

I constantly have to do this, so thought I would share this with everyone else. This command will run Laravel's queue listener indefinitely in the background until the process is killed manually.

nohup php /path/to/artisan queue:listen > /dev/null 2>&1 &

Be sure to change the path and add any options to the command, like --tries=1.